TA的每日心情 | 衰 2017-11-4 12:16 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
本人编写了个定位百度“设置”标签的语句,一直提示报错,不知什么原因,求大神解答!
test.find_element_by_name("tj_settingicon")
报错信息:
File "C:\Users\isesol\Desktop\python—Test\44.py", line 12, in <module>
test.find_element_by_name("tj_settingicon")
File "C:\Python27\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 325, in find_element_by_name
return self.find_element(by=By.NAME, value=name)
File "C:\Python27\lib\site-packages\selenium-2.47.1-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 707, in find_element
{'using': by, 'value': value})['value'] |
|