selenium exceptionin java (org.openqa.selenium.remote.UnreachableBrowserException)
来源:互联网 发布:程序员专用昵称 编辑:程序博客网 时间:2024/06/04 19:18
selenium exceptionin java (org.openqa.selenium.remote.UnreachableBrowserException)解决方法:
- 下载chromedriver.exe,而不是指定使用chrome.exe。下载地址:http://chromedriver.storage.googleapis.com/
- 在代码中指定使用 chromedriver.exe
具体代码如下:
WebDriver dr; String key = "webdriver.chrome.driver";// String value = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"; String value = "D:/常用软件/chromedriver_win32/chromedriver.exe"; System.setProperty(key, value); dr = new ChromeDriver(); dr.manage().window().maximize();// dr.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); dr.get("http://www.baidu.com");
0 0
- selenium exceptionin java (org.openqa.selenium.remote.UnreachableBrowserException)
- selenium异常:org.openqa.selenium.remote.UnreachableBrowserException
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error
- Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException
- org.openqa.selenium.StaleElementReferenceException
- org.openqa.selenium.StaleElementReferenceException
- org.openqa.selenium.ElementNotVisibleException
- Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException
- Exception in thread "main" org.openqa.selenium.remote.SessionNotFoundException
- Java Code Examples for org.openqa.selenium.JavascriptExecutor
- java.lang.NoClassDefFoundError: org/openqa/selenium/htmlunit/HtmlUnitDriver 问题解决方案
- java.lang.NoClassDefFoundError: org/openqa/selenium/interactions/internal/Locatable
- org.openqa.selenium.ElementNotVisibleException: element not visible
- idea maven 程序包org.openqa.selenium不存在
- Appium报错:org.openqa.selenium.NoSuchSessionException
- 用java+selenium启动chrome浏览器时报错Exception in thread "main" org.openqa.selenium.NoSuchSession
- org.openqa.selenium.os.UnixProcess$SeleniumWatchDog destroyHarder错误
- Xcode6中创建分类、协议等文件的方法
- 云环境下数据保护方案的选择
- JavaScript中创建对象的几种方式
- js事件封装(已兼容)
- UIImageView的图片居中问题
- selenium exceptionin java (org.openqa.selenium.remote.UnreachableBrowserException)
- C++之并行开发
- 我的Android进阶之旅------>Android中adb install 安装错误常见列表
- SPDY 是什么?如何部署 SPDY?
- centos6上redis搭建配置
- Android 学习笔记七:使用Fragment创建动态UI
- Nim Game
- [165]Compare Version Numbers
- loaded the "XXXviewController" nib but the view outlet was not set