随笔分类 -  selenium自动化

摘要:1.NoSuchElementException:没有找到元素2.NoSuchFrameException:没有找到iframe3.NoSuchWindowException:没找到窗口句柄handle4.NoSuchAttributeException:属性错误5.NoAlertPresentEx 阅读全文
posted @ 2021-03-15 11:42 橙子皮! 阅读(399) 评论(0) 推荐(0)
摘要:转载:https://www.cnblogs.com/fnng/p/11846050.html(虫师大佬) pyse 更名为 seldom WebUI automation testing framework based on Selenium and unittest. 基于 selenium 和 阅读全文
posted @ 2021-03-12 10:05 橙子皮! 阅读(442) 评论(0) 推荐(0)
摘要:插件下载地址 chromewebdriver:http://chromedriver.storage.googleapis.com/index.html/放置在python下的Scripts Firefox下载地址:https://github.com/mozilla/geckodriver/rel 阅读全文
posted @ 2019-02-27 17:22 橙子皮! 阅读(1113) 评论(0) 推荐(0)
摘要:selenium8种定位元素方法 id name class name tag name link text断言 partial link text xpath css selector 百度页面定位,简单讲解比较常用到的定位方法 find_elements_by_id() #通过id定位 find 阅读全文
posted @ 2019-01-17 17:24 橙子皮! 阅读(217) 评论(0) 推荐(0)
摘要:常用的键盘操作 send_keys(Keys.BACK_SPACE) 删除键(BackSpace) send_keys(Keys.SPACE) 空格键(Space) send_keys(Keys.TAB) 制表键(Tab) send_keys(Keys.ESCAPE) 回退键(Esc) send_k 阅读全文
posted @ 2019-01-15 11:38 橙子皮! 阅读(2069) 评论(0) 推荐(0)
摘要:报错原因element少了s定位一组元素的方法与定位单个元素的方法类似,唯一的区别是在单词element后面多了一个s表示复数。 改为 返回结果为 阅读全文
posted @ 2019-01-07 17:28 橙子皮!