草庐IT

WebDriverException

全部标签

python - 如何修复 "WebDriverException: Message: connection refused"?

我正在使用非常复杂的设置来测试各种非公开网页。我使用jenkins在docker图像中运行python-selenium测试。这样,我就完全独立于jenkins环境,可以创建自己的环境。在这种环境下,我安装了以下软件:火狐:57.0.1geckodriver:0.18.0Nose测试:1.3.7Selenium:3.8.0selenium测试通过以下方式创建WebDriver:profile=webdriver.FirefoxProfile()profile.set_preference("browser.download.dir",self.downloadpath)profile.

python - Selenium:WebDriverException:Chrome 无法启动:由于 google-chrome 不再运行而崩溃,因此 ChromeDriver 假设 Chrome 已崩溃

最近我换了电脑,从那以后我就不能用selenium启动chrome。我也尝试过Firefox,但浏览器实例无法启动。fromseleniumimportwebdriverd=webdriver.Chrome('/home/PycharmProjects/chromedriver')d.get('https://www.google.nl/')我收到以下错误:selenium.common.exceptions.WebDriverException:Message:unknownerror:Chromefailedtostart:crashed(unknownerror:DevTools

python - Selenium:WebDriverException:Chrome 无法启动:由于 google-chrome 不再运行而崩溃,因此 ChromeDriver 假设 Chrome 已崩溃

最近我换了电脑,从那以后我就不能用selenium启动chrome。我也尝试过Firefox,但浏览器实例无法启动。fromseleniumimportwebdriverd=webdriver.Chrome('/home/PycharmProjects/chromedriver')d.get('https://www.google.nl/')我收到以下错误:selenium.common.exceptions.WebDriverException:Message:unknownerror:Chromefailedtostart:crashed(unknownerror:DevTools

java - org.openqa.selenium.WebDriverException : unknown error: call function result missing 'value'

发送键不起作用。请帮我解决这个问题..WebElementusername=driver.findElement(By.xpath("//*[@id='username']"));username.sendKeys("123456");控制台:Exceptioninthread"main"org.openqa.selenium.WebDriverException:unknownerror:callfunctionresultmissing'value'(Sessioninfo:chrome=65.0.3325.31)(Driverinfo:chromedriver=2.33.5061

java - org.openqa.selenium.WebDriverException : unknown error: call function result missing 'value'

发送键不起作用。请帮我解决这个问题..WebElementusername=driver.findElement(By.xpath("//*[@id='username']"));username.sendKeys("123456");控制台:Exceptioninthread"main"org.openqa.selenium.WebDriverException:unknownerror:callfunctionresultmissing'value'(Sessioninfo:chrome=65.0.3325.31)(Driverinfo:chromedriver=2.33.5061

android - org.openqa.selenium.WebDriverException : Cannot create temp directory:/sd card/1339054625829.

我正在尝试使用Junit在Android模拟器上使用selenium自动化android(运行基本测试),我已将所有必需的jar添加到类路径,启动模拟器,打开其上的Web驱动程序并设置向上端口转发。但是当我在Eclipse中运行测试时(作为JUnit测试运行)。它失败了,我得到一个错误:org.openqa.selenium.webdriverexception:无法创建临时目录:/sdcard/1339054625829 最佳答案 如果您在启动模拟器时没有为SD卡设置任何空间,则可能会出现此错误。您可以设置要用作设备SD卡内存的内

python - WebDriverException : Message: 'The browser appears to have exited before we could connect. 输出为:错误:未指定显示

当运行我的测试用例时,我的任何测试程序都试图启动firefox,我得到了错误。我正在使用robotframework、Selenium2Library和python2.7。1Login[WARN]Keyword'CapturePageScreenshot'couldnotberunonfailure:Nobrowserisopen|FAIL|WebDriverException:Message:'Thebrowserappearstohaveexitedbeforewecouldconnect.Theoutputwas:Error:nodisplayspecified\n'我的Cent

python - WebDriverException : Message: 'Can not connect to the ChromeDriver' . utils.is_connectable(self.port) 错误:

我正在尝试使用chromedriver2.10在CentOS机器上的Chrome浏览器版本35.0.1916.114上运行我的测试/home/varunm/EC_WTF_0.4.10/EC_WTF0.4.10_Project/wtframework/wtf/drivers/chromedriver实际上我解决了路径问题,因为如果问题出在路径上,错误消息会有所不同defstart(self):"""StartstheChromeDriverService.:Exceptions:-WebDriverException:Raisedeitherwhenitcan'tstarttheserv

python - Selenium 崩溃与 selenium.common.exceptions.WebDriverException : Message: newSession

操作系统:Ubuntu16.04.3LTS(GNU/Linux4.4.0-1066-awsx86_64)Selenium版本:Selenium==3.6.0浏览器:MozillaFirefox63.0壁虎驱动版本:geckodriver-v0.19.0-linux64预期行为-创建一个新的firefox浏览器并执行一些步骤-解析网站。实际行为-日志崩溃:-self.driver=webdriver.Firefox()File"/home/ubuntu/env/local/lib/python2.7/site-packages/selenium/webdriver/firefox/web

python - WebDriverException : Message: Service chromedriver unexpectedly exited. 状态代码为:127

我想在我的服务器上使用selenium构建我的爬虫。因此我已经在我的Ubuntu17.10服务器上安装/下载了所需的依赖项——例如chromedriver、chromium-browser等但是,当我运行以下代码时:driver=webdriver.Chrome()它返回以下错误:---------------------------------------------------------------------------WebDriverExceptionTraceback(mostrecentcalllast)in()---->1driver=webdriver.Chrome