Unable to launch Chromium/chrome using Jenkins Build #2092
dhanushng88
started this conversation in
General
Replies: 2 comments 6 replies
-
This error happens when chromium is launched on headful mode on a container like docker. Maybe the environment variables values are not set correctly causing it to launch with |
Beta Was this translation helpful? Give feedback.
1 reply
-
How are you setting the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
Can anyone help me out in identifying what's the issue with launching chromium using jenkins
Belo are the console errors we are facing[This was working as excepted from many months] but suddenly from last week we are seeing this issue.
Failed to capture screenshot on failure.
Error: Browser or page not initialized. Call
openBrowser()
before using this API[runner: 4] Error Message: Error: Failed to launch chrome!
[17195:17195:0531/075543.616525:ERROR:browser_main_loop.cc(1386)] Unable to open X display.
Taiko version : 1.0.3
Gauge version: 1.0.7
Commit Hash: ed7b4fd6
Plugins
html-report (4.0.10)
js (2.3.8)
json-report (0.3.3)
reportportal (1.6.0)
screenshot (0.0.1)
xml-report (0.2.3)
In browser.js file we are using this code
beforeScenario(async () => {
if (process.env.api_test_run === 'false') {
await setConfig({ navigationTimeout: parseInt(process.env.test_timeout) });
});
afterScenario(async () => {
if (process.env.api_test_run === 'false') {
await closeBrowser();
}
});
Beta Was this translation helpful? Give feedback.
All reactions