I’m primarily using the Firefox driver to run all of my scripts. There may be instances that members of my team will use the headless browser option and some not.
How can I determine in the script how its being ran? I’d like to catch if its in headless mode. Pseudo code example:
Hi there,
this code is working when I select the headless chrome button: https://prnt.sc/2018io9
button it’s not when I using this code:
ChromeOptions chromeProfile = new ChromeOptions()
chromeProfile.addArguments(’–headless’)
yes , actually I can use 1 key=true when using that code, but I think maybe has the best way to get headless mode. Some case, there are 2 different displays for 1 flow test, so I have to write for both in 1 file script