gpt4 book ai didi

python - RobotFramework+selenium无法点击img按钮

转载 作者:行者123 更新时间:2023-12-01 04:22:42 24 4
gpt4 key购买 nike

来自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

源html页面代码:

<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>

为什么selenium只关注元素而不按下按钮?

最佳答案

RadioButton 不是一个按钮。请改用Click ElementSelect Radio Button

关于python - RobotFramework+selenium无法点击img按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33519275/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com