Run Selenium Headless Using Chrome Driver
Автор: automateNow
Загружено: 2021-05-28
Просмотров: 2468
Описание:
Learn how to run your Selenium WebDriver tests in headless mode using chrome driver.
If you need your Selenium tests to consume less resources, you may want to consider using Chrome Driver's headless mode. You may even notice your tests running a little faster.
What is headless mode?
Headless mode allows you to run your automated tests without the need to open a web browser.
When using Chrome Driver, we use the ChromeOptions class along with the addArguments method to run our tests in headless mode.
Note:
In addition to using this code to run in headless mode,
options.addArguments("--headless");
you may also use
options.setHeadless(true);
👨💻Learn Selenium like a pro with our highly-rated courses!
👉 https://bit.ly/3YpjIbz
📑 CHAPTERS
0:00 ~ What is headless mode and the benefits?
0:30 ~ Using ChromeOptions to run headless
1:40 ~ Running the test
2:09 ~ How does headless mode work?
2:23 ~ How to change screenshot size in headless mode
3:14 ~ Rerunning the test
3:26 ~ ChromeOptions arguments
3:41 ~ Additional resources
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: