如何解决Selenium无法启动IE
您如何启动集线器和节点?
对于节点,这对我有用:
- 从http://code.google.com/p/selenium/downloads/list下载InternetExplorerDriver 到c:\ Selenium
- 从http://code.google.com/p/selenium/downloads/list将Selenium独立服务器(selenium-server-standalone-2.20.0.jar)下载到c:\ Selenium
- 启动节点:
java -jar selenium-server-standalone-2.20.0.jar -role webdriver -hub http://192.168.1.248:4444/grid/register -browser browserName="internet explorer",version=8.0,platform=WINDOWS -Dwebdriver.internetexplorer.driver=c:\Selenium\InternetExplorerDriver.exe
我正在使用OSX运行集线器,使用Virtual Box运行Windows 7 Home和IE集线器。
另外,请确保所有区域的保护模式设置都相同。
解决方法
Selenium无法启动IE。
10:56:25,005 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler]
Command request: getNewBrowserSession[*iexploreproxy,http://192.168.132.105:8080/,] on session null 10:56:25,005 INFO
[org.openqa.selenium.server.BrowserSessionFactory] creating new remote session
10:56:25,005 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated
session 9fa93fe865904e3da895c91a86ebdcb0 for http://192.168.132.105:8080/,launching... 10:56:25,005 INFO
[org.openqa.selenium.server.browserlaunchers.WindowsProxyManager] Modifying
registry settings... 10:56:25,474 INFO
[org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher]
Launching Internet Explorer...
之后,Internet Explorer...
它不会响应。请帮助我解决此问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。