Skip to content

Instantly share code, notes, and snippets.

@dborin
Last active December 13, 2015 18:48
Show Gist options
  • Select an option

  • Save dborin/4957524 to your computer and use it in GitHub Desktop.

Select an option

Save dborin/4957524 to your computer and use it in GitHub Desktop.

Revisions

  1. David Borin revised this gist Feb 15, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions winserv2008_selenium_setup
    Original file line number Diff line number Diff line change
    @@ -18,9 +18,9 @@ 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("https://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/981c08af78a9f997aff9c1d282563893832ff325/admin_config.reg", "C:\Selenium\IE_admin_config.reg")

    $client.DownloadFile("https://gist.github.com/santiycr/870401/raw/10ab8c9bd4371547a0b503871461ed6caa251831/user_config.reg", "C:\Selenium\IE_user_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

  2. David Borin revised this gist Feb 15, 2013. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions winserv2008_selenium_setup
    Original file line number Diff line number Diff line change
    @@ -18,11 +18,17 @@ 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("https://gist.github.com/santiycr/870401/raw/981c08af78a9f997aff9c1d282563893832ff325/admin_config.reg", "C:\Selenium\IE_admin_config.reg")

    $client.DownloadFile("https://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)

  3. David Borin revised this gist Feb 15, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions winserv2008_selenium_setup
    Original file line number Diff line number Diff line change
    @@ -96,6 +96,8 @@ setx PATH "%PATH%;C:\nssm\win64\;C:\Selenium\\" /M

    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\
  4. David Borin revised this gist Feb 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion winserv2008_selenium_setup
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ copy the uncompressed pip folder content into *C:\Python2x* folder (don't copy t

    *** Update PATH in a command window

    setx PATH "%PATH%;C:\Python27\;C:\Python27\Scripts\\" /M
    setx PATH "%PATH%;C:\Ruby193\bin\;C:\Python27\;C:\Python27\Scripts\\" /M

    *** Use pip to install Python Selenium
    *** Use gem to install Ruby Selenium
  5. David Borin revised this gist Feb 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion winserv2008_selenium_setup
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ In the command window

    7z e -o"C:\Selenium\" "C:\Users\Administrator\Downloads\IEHArden.zip"

    C:\Selenium\IEHArden.zip
    C:\Selenium\IEHArden_V4.bat

    *** Turn off all Windows firewall (from cmd)

  6. David Borin created this gist Feb 14, 2013.
    101 changes: 101 additions & 0 deletions winserv2008_selenium_setup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,101 @@
    *** 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")

    In the command window

    7z e -o"C:\Selenium\" "C:\Users\Administrator\Downloads\IEHArden.zip"

    C:\Selenium\IEHArden.zip

    *** 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:\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"

    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\