在Jenkins中运行量角器脚本时出现无头Chrome错误

mcvgt66p  于 2023-11-14  发布在  Go
关注(0)|答案(1)|浏览(196)

我得到下面的错误,当我运行我的量角器Jenkins案件与下面的配置
(Session info:headless Chrome=79.0.3945.117)[INFO](Driver info:chromedriver=79.0.3945.36
代码:'chromeOptions':{

'args': ['--no-sandbox', '--disable-web-security', '--disable-extensions'],
        'args': [ "--headless", "--disable-gpu", "--window-size=1920,1080" ]
    },

字符串

**错误:**TimeoutError:timeout:接收渲染器消息超时:10.000

Package.json详细信息

main": "conf.js",
  "dependencies": {
    "chromedriver": "^79.0.0",
    "grunt": "^0.4.5",
    "grunt-cli": "^0.1.13",
    "grunt-cli-babel": "0.0.5",
    "grunt-protractor-runner": "^2.1.0",
    "grunt-shell-spawn": "^0.3.8",
    "iedriver": "^3.0.0",
    "jasmine": "^2.4.1",
    "jasmine-allure-reporter": "^1.0.2",
    "jasmine-reporters": "^2.1.1",
    "jasmine-spec-reporter": "^2.4.0",
    "protractor": "^5.3.1",
    "protractor-jasmine2-screenshot-reporter": "^0.5.0",
    "selenium-webdriver": "^3.6.0",
    "webdriver-manager": "^12.1.7"


任何帮助都将受到高度赞赏。

wa7juj8i

wa7juj8i1#

添加arg --disable-dev-shm-usage解决了我的问题。

相关问题