
Selenium
迫降爱琴海
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Selenium with Python: Unresolved Import Issues
用Selenium+Python27+Eclipse(Juno)+PyDev搭建的环境,在使用以下语句时提示错误: from selenium import webdriver Eclipse提示"Unresolved import issues",虽然对于脚本运行没有任何影响(说明Interpreter是识别的),但在Eclipse里不能智能列出成员了,影响效率。 Google了许原创 2013-02-26 15:35:53 · 1824 阅读 · 0 评论 -
[selenium&Python] find_element_by_name找不到element
用python+selenium写脚本时遇到一个问题:find_element_by_name找不到element. 我用的是Chrome, 而用Firefox+Selenium IDE时就能正常find element. web相关代码如下: 从代码看find_element_by_name("logon")是绝对没有错的,而且从Selenium IDE中copy来的代码也印证了这原创 2013-02-28 09:48:40 · 9630 阅读 · 0 评论 -
python unittest 继承时出现 object has no attribute '_testMethodDoc'
之前没有注意过, 这次出现了, google了一下, 找到原因, 这里作为记录: class AppTest(unittest.TestCase): def __init__(self, arg1, arg2): pass 从unittest.TestCase继承后随手定义了__init__, 其实当时里面啥也没写, 当框架写完, 运行时出现错误: Attri原创 2017-09-10 15:50:56 · 10994 阅读 · 0 评论