Skip to main content
Home
  • Tutorials
    • Quality Assurance
    • Software Development
    • Machine Learning
    • Data Science
  • About Us
  • Contact
programsbuzz facebook programsbuzz twitter programsbuzz linkedin
  • Log in

Main navigation

  • Tutorials
    • Quality Assurance
    • Software Development
    • Machine Learning
    • Data Science
  • About Us
  • Contact

Setting up Selenium Grid on Mac OS

Profile picture for user devraj
Written by devraj on 08/31/2020 - 02:00

To get started with Selenium Grid, it is essential to have Java already installed, and set up the environment variables. To set up Selenium Grid on Mac OS, follow below steps:

Step 1: Download the Selenium Server Standalone package from here. This package is a jar file, which includes the Hub, WebDriver and legacy RC that is needed to run the Grid. 

Step 2: Navigate to the directory where Selenium Server Standalone jar file is stored and Start the Hub using below command. Hub is the central point in the Selenium Grid that routes the JSON test commands to the nodes. It receives test requests from the client and routes it to the required nodes. 

$ java -jar selenium-server-standalone-3.141.59.jar -role hub -port 8888

I have started at port 8888. You can choose of your own. To view the status of the hub, open a browser window and navigate to https://localhost:8888/grid/console. Here replace localhost with address generated in terminal for Hub.

Step 3: Start Nodes, type below command, to start Chrome and Firefox on same address

$ java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://192.168.1.74:8888/grid/register -browser browserName=chrome,version=80,webdriver.chrome.driver=/YourPath/chromedriver,maxInstances=5,platform=MAC -browser browserName=firefox,version=73,webdriver.gecko.driver=/YourPath/geckodriver,maxInstances=5,platform=MAC

Here note: 

  • We have specified selenium server jar again.
  • Role is node
  • Hub address generated earlier specified. note /grid/register here.
  • Each browser is separated by -browser
  • Each browser has different capabilities like browser name, version, path, max instances, platform

Above command will start chrome browser and firefox on same node. To start on separate node use:

$ java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://192.168.1.74:8888/grid/register -browser browserName=chrome,version=80,webdriver.chrome.driver=/YourPath/chromedriver,maxInstances=5,platform=MAC 
$ java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://192.168.1.74:8888/grid/register-browser browserName=firefox,version=73,webdriver.gecko.driver=/YourPath/geckodriver,maxInstances=5,platform=MAC
Related Content
Selenium Tutorial
Using Selenium Grid to Run Cucumber Test
Selenium Grids Components and its Architecture
Tags
Selenium Grid
Selenium
  • Log in or register to post comments

Choose Your Technology

  1. Agile
  2. Apache Groovy
  3. Apache Hadoop
  4. Apache HBase
  5. Apache Spark
  6. Appium
  7. AutoIt
  8. AWS
  9. Behat
  10. Cucumber Java
  11. Cypress
  12. DBMS
  13. Drupal
  14. GitHub
  15. GitLab
  16. GoLang
  17. Gradle
  18. HTML
  19. ISTQB Foundation
  20. Java
  21. JavaScript
  22. JMeter
  23. JUnit
  24. Karate
  25. Kotlin
  26. LoadRunner
  27. matplotlib
  28. MongoDB
  29. MS SQL Server
  30. MySQL
  31. Nightwatch JS
  32. PactumJS
  33. PHP
  34. Playwright
  35. Playwright Java
  36. Playwright Python
  37. Postman
  38. Project Management
  39. Protractor
  40. PyDev
  41. Python
  42. Python NumPy
  43. Python Pandas
  44. Python Seaborn
  45. R Language
  46. REST Assured
  47. Ruby
  48. Selenide
© Copyright By iVagus Services Pvt. Ltd. 2023. All Rights Reserved.

Footer

  • Cookie Policy
  • Privacy Policy
  • Terms of Use