我试着点击一个动态网页上的单选按钮。我尝试了classname、xpath,但没有任何效果。在
包含单选按钮的代码是:
<input id="radiofield-1247-inputEl" class="x-form-field x-form-radio x-form-cb" type="button" hidefocus="true" autocomplete="off" role="radio">
按钮旁边有一个标签。在
^{2}$我试过了:
driver.find_element_by_xpath("//*[@type='radio'][@class='#class here'") #.click() and this doesn't work.
我尝试传递绝对xpath,但也失败了。没有要搜索的名称或id。在
您正在尝试
type="radio"
,而在提供的HTML
上,type="button"
。。。在尝试以下操作
XPath
:相关问题 更多 >
编程相关推荐