driver.find_element_by_id("radDiv").find_elements_by_xpath('//input[@value="NoR"]').click()
报错Traceback(most recent call last):
File"C:/Users/candy.hou/PycharmProjects/PyProjects/Demo/package/WebDriverStudy.py",line 41, in <module>
driver.find_element_by_id("radDiv").find_elements_by_xpath('//input[@value="NoR"]').click()
AttributeError: 'list' object has no attribute 'click' HTML: <divid = "radDiv">
<tr>
<td>
Select RadioY<input type="radio" name="current"value="YesR"/>
</td>
<td>
Select RadioN<input type="radio" name="current"value="NoR"/>
</td>
</tr>
</div>
在学课程 分层自动化测试(UI+接口)--从入门到放弃
|