Selenium无法访问的浏览器异常

时间:2014-08-18 22:59:40

标签: java selenium

我正在使用safari webdriver运行一些自动化测试用例,并且我在大多数时间面临问题无法访问的浏览器异常。其他很少一次,但有50%的时间selenium无法启动Safari浏览器。

Aug 18, 2014 5:35:44 PM org.openqa.selenium.safari.SafariDriverServer start
INFO: Server started on port 5608
Aug 18, 2014 5:35:44 PM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Launching Safari
Aug 18, 2014 5:35:44 PM org.openqa.selenium.safari.SafariDriverCommandExecutor start
INFO: Waiting for SafariDriver to connect
Aug 18, 2014 5:36:29 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutting down
Aug 18, 2014 5:36:29 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping Safari
Aug 18, 2014 5:36:29 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping server
Aug 18, 2014 5:36:29 PM org.openqa.selenium.safari.SafariDriverServer stop
INFO: Stopping server
Aug 18, 2014 5:36:30 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Uninstalling extensions
Aug 18, 2014 5:36:30 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutdown complete
Aug 18, 2014 5:36:30 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutting down
Aug 18, 2014 5:36:30 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Stopping server
Aug 18, 2014 5:36:30 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Uninstalling extensions  
Aug 18, 2014 5:36:30 PM org.openqa.selenium.safari.SafariDriverCommandExecutor stop
INFO: Shutdown complete
2014-08-18 17:36:33 ERROR myProject:217 - Failed to connect to SafariDriver after 45182     ms
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: '***', ip: '****', os.name: 'Mac OS X', os.arch:     'x86_64', os.version: '10.9.4', java.version: '1.7.0_25'

我应该在启动浏览器时为safari webdriver设置一些功能吗?

0 个答案:

没有答案