// This doc assumes you have a basic understanding of authoring/running WebDriver tests
// Tested on 11/1/2017 in the following environment
ChromeDriver 2.33
,
EdgeDriver Release 16299
,
Selenium 3.40.0
,
Java: jdk1.8.0_131
,
Windows 7 Host
download VirtualBox to your computer
download and install VM loaded with Edge
set enviroment variable in VM for JDK_HOME.
download edgeDriver and
download chromeDriver into %USER_PROFILE%\Desktop\GridFiles
download Java JRE onto VM computer
Copy StartNode.bat
,StartHub.bat
,Node.json
, and [using Oxford comma because reasons] Hub.json
into %USER_PROFILE%\Desktop\GridFiles
on VM
VM -> Machine > Settings > Network > Attached To: Bridged Adapter
Also you will need to Search for Windows Defender Firewall and turn it off.
In Windows Explorer Nav to %USER_PROFILE%\Desktop\GridFiles
Run StartHub.bat
Run StartHub.bat
If either of these closes immediately, you'll want to open a command prompt: and
cd %USER_PROFILE%\Desktop\GridFiles
Rerun the failed batch file:
StartHub.bat
Normally this is in `C:\Progam Files\Java\jre1.X.0_XX' (replace X's with the numbers from your version)
// Note JDK version on Host Machine and JRE on VM must be >= 1.8
Install Intellij Idea to Host i.e. not in VM
Run the test file in Intellij. Note: You will need to get the IP of the VM with
Add the IP_ADDRESS to TestEdgeFT, this is obtained by ipconfig from a command prompt.
(Also you should be able to ping the VM from the host)