简体   繁体   English

org.openqa.selenium.remote.UnreachableBrowserException:

[英]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:我会尝试以下方法:

  1. Make sure your Java SDK is up to date确保您的 Java SDK 是最新的
  2. Make sure you've properly configured your IDE or environment.确保您已正确配置您的 IDE 或环境。 If you need an explicit proxy to connect to the internet, make sure you've configured it.如果您需要显式代理来连接到 Internet,请确保您已对其进行配置。
  3. Contact your network security team and ask whether you should be able to contact subdomains of Sauce Labs on port 80 and 443.联系您的网络安全团队并询问您是否应该能够在端口 80 和 443 上联系 Sauce Labs 的子域。

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.

相关问题 org.openqa.selenium.remote.UnreachableBrowserException - org.openqa.selenium.remote.UnreachableBrowserException 线程“主”中的Selenium异常org.openqa.selenium.remote.UnreachableBrowserException - Selenium Exception in thread “main” org.openqa.selenium.remote.UnreachableBrowserException 硒 Java org.openqa.selenium.remote.UnreachableBrowserException - Selenium Java org.openqa.selenium.remote.UnreachableBrowserException org.openqa.selenium.remote.UnreachableBrowserException:与远程浏览器通信时出错 - org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser selenium exceptionin java(org.openqa.selenium.remote.UnreachableBrowserException) - selenium exceptionin java (org.openqa.selenium.remote.UnreachableBrowserException) org.openqa.selenium.remote.UnreachableBrowserException:-错误的硒Java TestNG - org.openqa.selenium.remote.UnreachableBrowserException: - Error selenium Java TestNG 线程“主” org.openqa.selenium.remote.UnreachableBrowserException中的异常: - Exception in thread “main” org.openqa.selenium.remote.UnreachableBrowserException: org.openqa.selenium.remote.UnreachableBrowserException如何定义EXE路径? - org.openqa.selenium.remote.UnreachableBrowserException How to define EXE path? org.openqa.selenium.remote.UnreachableBrowserException:无法启动新会话 - org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session org.openqa.selenium.remote.UnreachableBrowserException与远程浏览器幻象js通信时出错 - org.openqa.selenium.remote.UnreachableBrowserException Error communicating with the remote browser phantom js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM