-
Notifications
You must be signed in to change notification settings - Fork 0
About:Tests
Several options here:
HtmlUnit is headless browser
Procs:
-
Zero-configuration
-
No external tools needed
Cons:
-
No screenshot
-
External links are not opening correctly
Runs in normal Chrome browser. Need for ChromeDriver installation and test runner configuration.
Download latest from here
Note for Windows users: There only 32-bit driver available. This works fine with 64-bit Chrome.
Procs:
-
Close to real user experience (what end-user sees)
-
Screenshots available
-
External links are working correctly
Cons:
-
Requires ChromeDriver installation
-
Requires Runner configuration
-
Download zip-archive with driver
-
Extract it to some location in system (Tip: directory should not contain spaces)
-
Add 2 java properties to Test Runner:
Browser: -Dselenide.browser=chrome
Path to Chrome driver -Dwebdriver.chrome.driver=C:/opt/chromedriver.exe
Few moments to mention:
-
Screenshots are not available, when using headless browser
-
Screenshots are stored in "target/selenide" directory by default (overrideable by setting "-Dyals.selenide.reportdir")
-
Recommended to clean target directory each run This clean be done by executing
mvn cleaneach run