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

What is data driven testing?

API Automation Testing Script to check Response

How to handle frame window in selenium?

How to work with mouse hover menu in selenium?

How does Selenium Webdriver handle SSL certificate in Chrome?