运行python脚本报错:selenium.common.exceptions.SessionNotCreatedException: Message: session not created 原因:ChromeDriver版本与浏览器版本不匹配. 解决方法:重新下载适配的ChromeDriver. ChromeDriver下载路径:https://registry.npmmirror.com/binary.html?path=chromedriver/ 1.选择适配的版本进行下载       …
持续集成在执行UI时报错:Parent suite setup failed: SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81.查看了下谷歌的版本号,应该给自动升级到了版本83 在网上找了几篇博文进行谷歌版本的降级没有成功,然后在网上找到chromedriver驱动下载的地址:http://npm.taoba…
问题: 原因:firefox浏览器版本和浏览器驱动版本不匹配 解决办法:卸载高版本浏览器,安装低版本浏览器 下载地址:http://ftp.mozilla.org/pub/firefox/releases/ 比如http://ftp.mozilla.org/pub/firefox/releases/58.0/win64/zh-CN/ 58.0指版本,win64指64位,zh-CN指简体中文 目前我能成功的环境为: 驱动:geckodriver-v0.24.0-win64.zip   浏览器:v5…
错误再现 原因:firefox浏览器版本和浏览器驱动版本不匹配 解决办法:卸载高版本浏览器,安装低版本浏览器…
如何解决错误[selenium.common.exceptions.SessionNotCreatedException]   [问题起因] 2018年12月26日晚,启动我的pycharm准备学习selenium相关的知识,结果报错了:selenium.common.exceptions.SessionNotCreatedException:   Message: Unable to find a matching set of capabilities 开始我很疑惑,因为早一段时间,火狐浏览…
有一年多没写web自动化了,今天搭建环境的时候报了一个常见错误,但是处理过程有点闹心,报错就是常见的找不到驱动<selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH>,下载对应版本的驱动,放至chrome的安装目录的application下面,但是还一直报相同的错误(印象中一年之前遇到相同的问题不是这么处理的,但是记不起来),查了一些blog,找…
前言: 在做web自动化时,遇到一个缩放了浏览器比例的操作,从100%缩小到80%,再进行点击的时候,弹出报错信息,无法点击 selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (117, 674) (Session info: chrome=76.0.3809.132) debug一下代…
使用Selenium爬虫时,可能会遇到一些下拉菜单,动态加载,如果直接使用find_element_by_函数会报错,显示selenium.common.exceptions.ElementNotVisibleException: Message: element not visible. 意思是element是不可见的.所以无法获取到.这时候就遇到一个难题,怎么把element变成可见的呢? 这时候,我们就用ActionChains来模拟效果 ActionChains(driver).clic…
初次用IE浏览器运行自动化程序时,报错:selenium.common.exceptions.WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled…
一.说明 在使用python3+selenium写自动升级程序的时侯,碰到一个弹出对话框需要点击确认的场景.弹出的对话框如下图所示. 对于弹框各种资料都说通过switch_to.alert属性获取对话框对象,然后使用该对象的accept()方法点击确认. 但使用该方法,一直报错:“selenium.common.exceptions.NoAlertPresentException: Message: No alert is active”,截图如下: 二.对话框处理 2.1 基本消息框处理 Ja…