2 years ago

#12813

test-img

Sachin Koirala

Issue while opening headless chrome in remote jenkins server using selenium java

I am having trouble in using headless chrome on jenkins remote server. the test is failed at the time of url invoking or takes to much of a time like 5+mins and test failed as it wont have waiting time for that long, i have tried different chromeoption like disable gpu, nosandbox etc still the issue is not solved.There is no issue in opening those url in normal mode but its not working on headless mode. i am using this chromeoptions for test:

enter code here
       ``` chromeOptions.addArguments("--window-size=1366,768");
            chromeOptions.addArguments("--disable-gpu");
            chromeOptions.addArguments("--disable-extensions");
            chromeOptions.addArguments("--proxy-server='direct://'");
            chromeOptions.addArguments("--proxy-bypass-list=*");
            chromeOptions.addArguments("--start-maximized");
            chromeOptions.addArguments("--headless");
            chromeOptions.addArguments("no-sandbox", "--disable-infobars", "--disable-dev-shm-usage", "--disable-browser-side-navigation",
                    "--ignore-certificate-errors");```

java

selenium

jenkins

remote-server

browser-automation

0 Answers

Your Answer

Accepted video resources