Dimencion Rider
Dimencion Rider

Reputation: 175

RobotFramework+selenium cannot click the img button

test cases from robotFramework:

        Wait Until Element Is Visible    //input[@value='Data Solutions']
        Wait For Condition    return window.document.querySelector('[value="Data
    Solutions"]').style.visibility != "visible"
        Click Button    //input[@value='Data Solutions']
        Click Link    css=input[value='Data Solutions'] + i
        Wait Until Element Is Enabled     ${ticketServiceSelect}    #next text input field should be enabled

source html page code:

<div class="btn-group ng-pristine ng-untouched ng-valid" bs-radio-group="" data-toggle="buttons">
<label class="btn service-icon ng-binding ng-scope" btn-radio="'Data Solutions'" ng-repeat="service in serviceGroups.itsmServiceGroups" style="">
<input class="ng-pristine ng-untouched ng-valid" type="radio" value="Data Solutions" bs-radio="" ng-model="ticket.serviceGroup" name="75">
<i class="dna-icon dna-icon-data-solutions"></i>
Data Solutions
</label>
</div>

Why selenium only focus on element not press the button?

Upvotes: 1

Views: 905

Answers (1)

Psytho
Psytho

Reputation: 3384

RadioButton is not a Button. Use Click Element or Select Radio Button instead.

Upvotes: 3

Related Questions