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...
它不会回应。请帮助我解决这个问题。
您如何启动集线器和节点?
对于节点,这对我有用:
- 从以下位置下载 InternetExplorerDriverhttp://code.google.com/p/selenium/downloads/list到 c:\Selenium
- 下载 Selenium 独立服务器(selenium-server-standalone-2.20.0.jar):http://code.google.com/p/selenium/downloads/list到 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 集线器。
另外,请确保所有区域的保护模式设置都相同。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)