[英]org.openqa.selenium.remote.UnreachableBrowserException:
I am using Selenium with sauce labs and I am trying to run testng file from command line but it's throwing me the following error since 1 week.我正在将 Selenium 与酱汁实验室一起使用,并且我正在尝试从命令行运行 testng 文件,但自 1 周以来它向我抛出以下错误。 It was working fine before.
它之前工作正常。 Can some one please help me in solving this?
有人可以帮我解决这个问题吗?
Regression.whitecapQA.Regression1saucechrome.initialization Time elapsed: 1.876 s <<< FAILURE!
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: '3.141.0', revision: '2ecb7d9a', time: '2018-10-31T20:09:30'
System info: host: '5CD9270R9Z', ip: '10.232.40.247', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_231'
Driver info: driver.version: RemoteWebDriver
at Regression.whitecapQA.Regression1saucechrome.initialization(Regression1saucechrome.java:81)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at Regression.whitecapQA.Regression1saucechrome.initialization(Regression1saucechrome.java:81)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
The relevant info here is:这里的相关信息是:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
引起:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效认证路径
Your code is unable to create a secure connection to the Sauce Labs servers.您的代码无法与 Sauce Labs 服务器建立安全连接。 Mostly, this happens because something in your network configuration is preventing it.
大多数情况下,发生这种情况是因为您的网络配置中的某些内容阻止了它。
Since this used to work, I'd suggest that something outside of your personal control but still within your organization has changed.由于这曾经有效,我建议您个人控制之外但仍在您组织内的某些事情发生了变化。 Your network security tooling might be interfering with connections to Sauce Labs, your proxy details might have changed or the SSL certificate bundle used on your machine might be outdated.
您的网络安全工具可能会干扰与 Sauce Labs 的连接,您的代理详细信息可能已更改,或者您计算机上使用的 SSL 证书包可能已过时。
I'd try the following:我会尝试以下方法:
You can try the trooubleshooting tips here to get your connection working in the Sauce Connect course:您可以尝试此处的故障排除技巧,以使您的连接在 Sauce Connect 课程中正常工作:
https://training.saucelabs.com/codelabs/Module1-SauceConnect/index.html?index=..%2F..sauceconnect#3 https://training.saucelabs.com/codelabs/Module1-SauceConnect/index.html?index=..%2F..sauceconnect#3
If this doesn't work, file a support ticket by emailing support@saucelabs.com如果这不起作用,请通过发送电子邮件至 support@saucelabs.com 提交支持票
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.