web UI自动化
qq_29036333
这个作者很懒,什么都没留下…
展开
-
不同浏览器驱动下载地址
geckodriver(Firefox):https://github.com/mozilla/geckodriver/releases Chromedriver(Chrome):https://sites.google.com/a/chromium.org/chromedriver/home IEDriverServer(IE):http://selenium-release.storage.g...原创 2020-03-21 00:56:03 · 245 阅读 · 0 评论 -
【selenium】元素定位
定位方式 代码 id定位 find_element_by_id() class定位 find_element_by_class() name定位 find_element_by_name() tag定位 find_element_by_tag() link_text定位 find_element_by_link_text() partial_link_text定...原创 2020-03-21 00:13:36 · 112 阅读 · 0 评论 -
【selenium】鼠标操作
与鼠标操作相关的方法都封装在ActionChains类中。 使用前,需调用ActionChains。 from selenium.webdriver import ActionChains (1)perform():执行ActiobChains类中存储的所有行为 (2)context_click():右击 (3)double_click():双击 (4)drag_and_drop():拖动 (5...转载 2020-03-21 00:19:41 · 130 阅读 · 0 评论 -
Web UI 自动化测试框架 seldom
基于 selenium 和 unittest 的 Web UI自动化测试框架。 特点 提供更加简单API编写自动化测试。 提供脚手架,快速生成自动化测试项目。 自动生成HTML测试报告生成。 自带断言方法,断言title、URL 和 text。 支持用例参数化。 支持用例失败重跑。 用例失败/错误截图。 安装 pip install seldom 创建项目: seldom --...转载 2020-03-21 00:50:33 · 2685 阅读 · 0 评论