Selenium
翻滚的西红柿
nothing,just do it.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java+Selenium / org.openqa.selenium.NoAlertPresentException
driver.findElement(By by).click(); WebDriverWait wait = new WebDriverWait(driver, 5); Alert alert = wait.until(ExpectedConditions.alertIsPresent()); alert.accept(); 在进行alert操作前,先判断是否有警报显示,即是否有弹框出来。 参考: https://stackoverflow.com/questions/17749064/selenium-原创 2020-05-16 22:32:41 · 811 阅读 · 0 评论 -
Java+Selenium / 搭建一个简单Idea+Maven+Java+Selenium+TestNG自动化
1、准备环境 IntelliJ IDEA jdk maven 2、搭建项目 参考: https://blog.youkuaiyun.com/u014174132/article/details/106012556 3、测试demo 参考: https://www.cnblogs.com/iceb/p/7111878.html 注: 本文仅用于记录 感谢上文作为参考的博主! ...原创 2020-05-15 21:50:28 · 468 阅读 · 0 评论 -
Python+Selenium / 报错InvalidArgumentException:Message:invalid argument:invalid “expiry”
添加cookies到浏览器 driver.delete_all_cookies() with open(‘cookiesJsonFile.json’, ‘r’) as JsonFile: cookiesInfo = json.loads(JsonFile.read()) print(type(cookiesInfo), cookiesInfo) for i in range(0,len(cooki...原创 2020-03-22 11:48:03 · 4319 阅读 · 0 评论 -
Python+Selenium / 报错Message:“chromedriver” executable needs to be in PATH
报错: selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home 解决: 0、打开Chrome输入 “chrome...原创 2020-04-14 14:49:53 · 315 阅读 · 0 评论
分享