Chrome在我的詹金斯和Ubuntu 18.04上不稳定,>

问题描述 投票:4回答:1
enter image description here

Chrome在我的Jenkins上不稳定。当我运行5次构建时,它运行1-2次成功,而其他3次出现上述错误。

Chrome的代码:

ChromeOptions options = new ChromeOptions(); System.setProperty("webdriver.chrome.driver","/usr/local/bin/chromedriver"); options.addArguments("--headless"); options.addArguments("--no-sandbox"); options.addArguments("--disable-dev-shm-usage"); driver = new ChromeDriver(options); driver.get("https://mywebsite.com");

我已经采取的一些步骤:

    为Google chrome和chrome驱动程序提供777权限
  1. Set:在构建之前启动Xvfb,并在Jenkins构建设置中将其关闭为Trueenter image description here
  2. ChromeDriver 81.0.4044.69
  3. Google Chrome 81.0.4044.129

  4. Ubuntu 18.04.4 LTS(GNU / Linux 4.15.0-99-通用x86_64)
  • Chrome在我的Jenkins上不稳定。当我运行5次构建时,它运行1-2次成功,而其他3次出现上述错误。 Chrome的代码:ChromeOptions选项=新的ChromeOptions(); ...
  • java google-chrome jenkins selenium-webdriver ubuntu-18.04
    1个回答
    0
    投票
    此错误消息...
    © www.soinside.com 2019 - 2024. All rights reserved.