(org.jbehave.core.failures.BeforeOrAfterFailed: webdriver selenium错误解决。
2013-10-30 13:23
405 查看
(org.jbehave.core.failures.BeforeOrAfterFailed: Method initWebDriver (annotated with @BeforeStory in class com.infomorrow.story.CommonStep) failed: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.35.0', revision: '8df0c6bedf70ff9f22c647788f9fe9c8d22210e2', time: '2013-08-17 12:46:41'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: driver.version: RemoteWebDriver)
原来是由于,selenium-server-standalone-2.37.0.jar没有开,开启命令为:
下面的是windows下的bat命令,把地址更换一下就好
Build info: version: '2.35.0', revision: '8df0c6bedf70ff9f22c647788f9fe9c8d22210e2', time: '2013-08-17 12:46:41'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_15'
Driver info: driver.version: RemoteWebDriver)
原来是由于,selenium-server-standalone-2.37.0.jar没有开,开启命令为:
java -jar selenium-server-standalone-2.37.0.jar
下面的是windows下的bat命令,把地址更换一下就好
java -Dwebdriver.ie.driver=D:/develop/1022webtest/IEDriverServer.exe -jar D:/develop/1022webtest/selenium-server-standalone-2.37.0.jar -mode hub
相关文章推荐
- Selenium2学习-007-WebUI自动化实战实例-005-解决 Firefox 版本不兼容:org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary
- (org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Trying to start logcat capture but it's already started! )错误解决办法
- 解决org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms org.springframework.beans.BeanInstantiation
- 【解决问题】failed: java.lang.RuntimeException: org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer.
- Webdriver如何解决页面元素过期:org.openqa.selenium.StaleElementReferenceException: Element not found in the cache - perhaps the page has changed since it was looked up
- Selenium2学习-038-firefox、webdriver版本不对称问题解决:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055
- org.openqa.selenium.WebDriverException: f.QueryInterface is not a function Command duration or timeout:
- org/openqa/selenium/WebDriver : Unsupported major.minor version 51.0的解决办法
- 解决appium org.openqa.selenium.WebDriverException: An unknown server-side error occurred while process
- 解决Ruby在IE11中报Unable to get browser (Selenium::WebDriver::Error::NoSuchWindowError)的错误
- 解决selenium webdriver运行出现的org.openqa.selenium.firefox.NotConnectedException问题
- org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei错误解决方法。
- selenium webdriver定位不到元素的五种原因及解决办法(51testing)
- OpenQA.Selenium.WebDriverException : Failed to start up socket within 45000
- gem install selenium-webdriver安装报错解决
- 百度搜索_Selenium WebDriver 环境搭建和错误调试_chromedriver_win32必须下载否则无法测试chrome
- kafka_2.11-0.10.0.0 编程Failed to send messages after 3 tries. 错误解决
- windows+python3.5环境下安装selenium后无法导入webdriver的解决方法
- Selenium::WebDriver::Error::WebDriverError:Unable to find standalone executable解决办法
- https使用HttpWebRequest出现错误:System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.的解决方法