selenium webdriver headless chrome

      No Comments on selenium webdriver headless chrome

Why Headless Chrome?


A headless browser is a great tool for automated testing and server environments where you don’t need a visible UI shell. This can be achieved by using Selenium Java Class org.openqa.selenium.chrome.ChromeOptions.

Refer to the Google Chrome Capabilities Link

Pre-requisites:

Exception 1: unknown error: Chrome failed to start: was killed
Resolution:

Remove the following options from the code while running in windows.
options.addArguments(“–print-to-pdf”);
options.addArguments(“–screenshot”);

Exception 2: “unknown error: call function result missing ‘value'”
Resolution:
Download the latest version of chromedriver.exe solves this Issue.
Link for downloading the latest version: https://chromedriver.storage.googleapis.com/index.html?path=2.36/

Refer to the below Links for Practise

Selenium Wiki
Selenium Quiz
Selenium Advanced Quiz
Java Quiz
Java OOPS Quiz
Selenium WebDriver Tester Resume

Leave a Reply

Your email address will not be published. Required fields are marked *