I am using Selenium to open a web site, login and copy some information from one web site. However it is happening on my work station and have a display monitor.
my IT team wants to move this process to a virtual server which does not have a monitor.
1.Will this work - even if we install Chrome of Firefox on the server 2. Can we Chrome - headless to make this happen 3. Any other way - we can think of using Xserver
Please let me know.
Chrome headless should solve your problem here -- I've done this in the past with some of my automation and had success.
Just remember to use ChromeOptions
to add the --headless=new
flag (latest upgraded version of the old --headless
flag (see docs).
You may need to tweak some other ChromeOptions
as well - I also had to add --disable-gpu
and --window-size=1920,1200
to get mine working just right.