Last active
December 13, 2015 18:48
-
-
Save dborin/4957524 to your computer and use it in GitHub Desktop.
This is here because Windows and IE8 are BULLSHIT!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Install 7-zip 64-bit (file archiver / uncompress) to then get a zip file that will preconfigure IE8 to not have all the setup crap. | |
In PowerShell | |
$client = New-Object System.Net.WebClient | |
$client.DownloadFile("http://downloads.sourceforge.net/sevenzip/7z920-x64.msi", "C:\Users\Administrator\Downloads\7z920-x64.msi") | |
C:\Users\Administrator\Downloads\7z920-x64.msi | |
In standard command window | |
setx PATH "%PATH%;C:\Program Files\7-Zip\\" /M | |
After you run through the install wizard, run this from Powershell | |
Back in the PowerShell | |
$client.DownloadFile("http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-09-76-33-93/IEHArden_5F00_V4.zip", "C:\Users\Administrator\Downloads\IEHArden.zip") | |
$client.DownloadFile("http://gist.github.com/santiycr/870401/raw/981c08af78a9f997aff9c1d282563893832ff325/admin_config.reg", "C:\Selenium\IE_admin_config.reg") | |
$client.DownloadFile("http://gist.github.com/santiycr/870401/raw/10ab8c9bd4371547a0b503871461ed6caa251831/user_config.reg", "C:\Selenium\IE_user_config.reg") | |
In the command window | |
7z e -o"C:\Selenium\" "C:\Users\Administrator\Downloads\IEHArden.zip" | |
C:\Selenium\IEHArden_V4.bat | |
C:\Selenium\IE_admin_config.reg | |
C:\Selenium\IE_user_config.reg | |
*** Turn off all Windows firewall (from cmd) | |
netsh advfirewall set allprofiles state off | |
*** Install | |
Chrome and Firefox | |
Python (2.7) http://www.python.org/getit/ | |
Ruby (1.9.3) http://rubyinstaller.org/ -- Check off | |
"Install Td/Tk support" | |
"Add Ruby executables to your PATH" | |
"Associate .rb and .rbw files with this Ruby installation" | |
Java 64-bit (7.x) http://java.com/en/download/manual.jsp | |
pip | |
Download the last pip version from here: http://pypi.python.org/pypi/pip#downloads | |
Uncompress it | |
Download the last easy installer for Windows: (download the .exe at the bottom of http://pypi.python.org/pypi/setuptools ) and install it. | |
copy the uncompressed pip folder content into *C:\Python2x* folder (don't copy the whole folder into it, just the content), because python command doesn't work outside C:\Python2x folder and then : python setup.py install | |
*** Update PATH in a command window | |
setx PATH "%PATH%;C:\Ruby193\bin\;C:\Python27\;C:\Python27\Scripts\\" /M | |
*** Use pip to install Python Selenium | |
*** Use gem to install Ruby Selenium | |
*** Nice to have | |
Full puTTY suite http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip | |
TextPad http://www.textpad.com/download/index.html | |
*** Download the Selenium stand-alone jar file and IEDriverServer.exe (64-bit) to C:\Selenium\ | |
https://code.google.com/p/selenium/downloads/list | |
*** Create a nodeConfig.json in C:\Selenium\ with the following content, changing it to reflect the IP of the machine you're on: | |
{ | |
"capabilities": | |
[ | |
{ | |
"browserName": "internet explorer", | |
"maxInstances": 5, | |
"seleniumProtocol": "WebDriver" | |
}, | |
], | |
"configuration": | |
{ | |
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", | |
"maxSession": 5, | |
"port": 5555, | |
"host": "<IP of machine>", | |
"register": true, | |
"registerCycle": 5000, | |
"hubPort": 4444 | |
} | |
} | |
*** Download nssm to C:\nssm\ | |
http://nssm.cc/download/?page=download | |
*** Update the PATH in the command window | |
setx PATH "%PATH%;C:\nssm\win64\;C:\Selenium\\" /M | |
*** Run the following to setup a Grid node as a service | |
nssm install SeleniumGridNode "C:\Program Files\Java\jre7\bin\java.exe" "-Dwebdriver.ie.driver=\"C:\Selenium\IEDriverServer.exe\" -jar C:\Selenium\selenium-server-standalone-2.29.0.jar -role webdriver -hub http://10.14.209.83:4444/grid/register -nodeConfig C:\Selenium\nodeConfig.json" | |
sc config SeleniumGridNode type= own type= interact | |
Here's the default PATH if it gets screwed up | |
C:\Windows;C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment