Install Selenium on Windows for Java
Selenium is a free tool for automating website tests.
Required first:
1) Install Java SDK (not JRE)
2) Install Maven. You can use an installer from installmaven.weebly.com or manually install it from maven.apache.org.
1) Install Java SDK (not JRE)
2) Install Maven. You can use an installer from installmaven.weebly.com or manually install it from maven.apache.org.
3) This will install the selenium browser drivers. It is recommended to install them somewhere in the user's home directory because installing in a system directory like "Program Files" can cause permission issues. If the driver folder must be moved, update the user PATH variable (or re-install).
Note: this step may be skipped for the Selenide framework. It handles the browser drivers automatically.
This installer will update the user PATH variable with the path to the installation directory.
Note: this step may be skipped for the Selenide framework. It handles the browser drivers automatically.
This installer will update the user PATH variable with the path to the installation directory.
Compatible with Windows 7, 8, and 10 version: 1.0 March 29, 2018
For Chrome 64-66, MS Edge 16, Firefox, and Internet Explorer 11. More can be manually added from seleniumhq.org/download.
For Chrome 64-66, MS Edge 16, Firefox, and Internet Explorer 11. More can be manually added from seleniumhq.org/download.
4) Next, here is a demo test using the Selenide framework for easy-to-write tests.
TO LAUNCH A TEST
To launch a test in maven, navigate into the project folder via command-line and type "mvn test". As another option, double-click the batch file in the project folder called "launch". Note: on the very first run, maven will download needed files from repo.maven.apache.org. This demo loads the Chrome browser by default. Other browsers can be run via the command line: "mvn test -P firefox". IE may require special set-up: IE settings.
To launch a test in maven, navigate into the project folder via command-line and type "mvn test". As another option, double-click the batch file in the project folder called "launch". Note: on the very first run, maven will download needed files from repo.maven.apache.org. This demo loads the Chrome browser by default. Other browsers can be run via the command line: "mvn test -P firefox". IE may require special set-up: IE settings.
RECOMMENDED IDE
IntelliJ is nearly essential. It enables the use of the dot operator ( the ".") so that the auto-complete feature will show you available code options.
https://www.jetbrains.com/idea/download/#section=windows
IntelliJ is nearly essential. It enables the use of the dot operator ( the ".") so that the auto-complete feature will show you available code options.
https://www.jetbrains.com/idea/download/#section=windows
FREE VIRTUAL MACHINES
Microsoft offers free virtual machines for VMware and VirtualBox for cross-browser testing at modern.ie.
VirtualBox is free, but VMware is more reliable and has an easier interface. For Mac: VMWare Fusion.
Note: for MS Edge, I could only get Edge 16 in the "preview" version of Windows 10 to automate (but not in the regular version).
Microsoft offers free virtual machines for VMware and VirtualBox for cross-browser testing at modern.ie.
VirtualBox is free, but VMware is more reliable and has an easier interface. For Mac: VMWare Fusion.
Note: for MS Edge, I could only get Edge 16 in the "preview" version of Windows 10 to automate (but not in the regular version).