Skip to content

Instantly share code, notes, and snippets.

@stormoz
Last active February 10, 2022 08:57
Show Gist options
  • Select an option

  • Save stormoz/355e582e63c39ec897a1 to your computer and use it in GitHub Desktop.

Select an option

Save stormoz/355e582e63c39ec897a1 to your computer and use it in GitHub Desktop.

Revisions

  1. stormoz revised this gist Jan 13, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions readme.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    Install latest Java: https://www.java.com/en/download/manual.jsp
    Download latest Selenium Grid server: "selenium-server-standalone-*.jar": http://selenium-release.storage.googleapis.com/index.html
    Install Chrome for all users: https://www.google.com/chrome/browser/desktop
    Download latest Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/downloads
    Download nssm: https://nssm.cc/download
  2. stormoz revised this gist Jan 13, 2016. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions uninstall.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    nssm stop SeleniumNode1
    nssm remove SeleniumNode1 confirm

    nssm stop SeleniumNode2
    nssm remove SeleniumNode2 confirm

    nssm stop SeleniumHub
    nssm remove SeleniumHub confirm

  3. stormoz renamed this gist Jan 13, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. stormoz created this gist Jan 13, 2016.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    nssm install SeleniumHub java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role hub
    nssm start SeleniumHub

    nssm install SeleniumNode1 java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe
    nssm set SeleniumNode1 DependOnService SeleniumHub
    nssm start SeleniumNode1

    nssm install SeleniumNode2 java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=C:\Selenium\chromedriver.exe
    nssm set SeleniumNode2 DependOnService SeleniumHub
    nssm start SeleniumNode2