在定位下拉类表时遇到这个问题,不知何解,待后续解决。这里只是记录下先:
#选中某个下拉别表 先定位到下拉别表,在定位列表中某项值
dept = bigc_Driver.find_element_by_xpath("//span[@class = 'combo']")
print dept.is_displayed()
time.sleep(3)
dept.find_element_by_xpath("//input[@name = 'org_id']").click()
执行结果:
>>> ================================ RESTART ================================
>>>
True
Traceback (most recent call last):
File "C:/Users/sean/Desktop/*******.py", line 29, in <module>
dept.find_element_by_xpath("//input[@name = 'org_id']").click()