Hi
I’ve been struggling to find a way to run google chrome in headless mode to work with my test framework.
On a mac, I can run
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --no-sandbox --disable-gpu --remote-debugging-port=9222 > /dev/null &
However I need the terminal session back, in order to continue with the next test.
We basically added chrome to our Jenkins build agent so that we could have the ability to run some karate tests in sequential order – so im testing this on my macbook so that I can get it working on our Jenkins build agent.
I can get chrome headless communicating with my tests but I’m wondering if I may have missed some command line arguments.. because it communicates with port 9222 the first test but every test after that, uses a new port like 38656 or similar.
Thanks
Samuel Clay
DevOps Engineer
UK ATC - Newcastle
Is there any documentation on any more available command line arguments ‘–example’ that could help me?
Thanks
Sam