Execute the selenium script without opening browser.

System.setProperty("webdriver.chrome.driver", "C:\\Users\\Krina Modi\\eclipse-workspace\\chromedriver.exe");                

ChromeOptions options = new ChromeOptions();

options.addArguments("--no-sandbox");

options.addArguments("headless", "window-size=1200,700");

ChromeDriver driver = new ChromeDriver(options);

Comments

Popular posts from this blog

For Get Dynamic data & USe it into Postman Body parameters

API Automation Testing Script to check Response

Login through Data Driven Testing in selenium

What is data driven testing?

Which dependencies needed in pom.xml while doing automation through selenium?