![]() ![]() The invisible browser window is only 800圆00 in size. ![]() The beginning of any auto test starts as standard, we specify the path to our chrome driver: tProperty( "", "/path/to/driver") Īfter this thing, we have to do is to create a WebDriver object, and set the ChromeDriver path and some arguments : ChromeOptions options = new ChromeOptions() options.addArguments("-headless") WebDriver driver = new ChromeDriver(options) In this article, I want to demonstrate how you can use this functionality. Don’t worry - the ability to take screenshots won’t be affected in any way. This will allow you to run tests faster and with fewer resources, and most importantly, it will allow you to run tests on systems without a graphical component. We now have the ability to launch the browser without creating a visual browser window. Starting with version 60, the Chrome browser introduced the ability to run in headless mode. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |