How does Selenium handle headless browser?

Đinh Yến

New member
How does Selenium handle headless browser?
Answer
ChromeOptions options = new ChromeOptions() options. addArgument(“headless”); ChromeDriver driver = new ChromeDriver(options); In the above code, the browser is instructed to run in the headless mode using the
addArgument() method of
the ChromeOptions class provided by the Selenium WebDriver.
 

Tìm kiếm

Back
Top