Home United States USA — software Running Selenium Tests With Chrome Headless Running Selenium Tests With Chrome Headless

Running Selenium Tests With Chrome Headless Running Selenium Tests With Chrome Headless

280
0
SHARE

In this quick tutorial, we go over how to test your web applications in the browser by telling Google Chrome to execute tests in a headless browser using Java.
Before Google Chrome 59, headless execution had to be done by third-party headless browsers like PhantomJS, SlimerJS, TrifleJS, Nightmare, and HTMLUnit.
The « problem » is that these headless browsers emulate some engines, but not V8 (the Chrome engine) .
When we talk about testing, it’s necessary to simulate Google’s real engine, as both Internet users and web devs tend toward using Google Chrome.
As Google Chrome ships with headless execution in version 59 (as you can see here) we can tell ChromeDriver the options before the execution.
You can see some other ways to inform the ChromeOptions here .

Continue reading...