![](https://img-blog.csdnimg.cn/20190918140053667.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Selenium
翻滚的西红柿
我想做你的太阳
展开
-
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 · 666 阅读 · 0 评论 -
Java+Selenium / 搭建一个简单Idea+Maven+Java+Selenium+TestNG自动化
1、准备环境IntelliJ IDEAjdkmaven2、搭建项目参考:https://blog.csdn.net/u014174132/article/details/1060125563、测试demo参考:https://www.cnblogs.com/iceb/p/7111878.html注:本文仅用于记录感谢上文作为参考的博主!...原创 2020-05-15 21:50:28 · 404 阅读 · 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 · 4124 阅读 · 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 · 229 阅读 · 0 评论