Java -jar =/usr/local/bin/geckodriver =/usr/local/bin/chromedriver selenium-server-standalone.jar -role node -nodeConfig node.json" It registers both Firefox and Chrome drivers. Note: If you also download and move the firefox driver (geckodriver) to the /usr/local/bin folder, you can use below script. Java -jar =/usr/local/bin/chromedriver selenium-server-standalone.jar -role node -nodeConfig node.json" Java -jar selenium-server-standalone.jar -role hub -hubConfig hub.json" Then save below script as mand this script automatically starts node and hub.īut before you need to install a chrome driver on your MAC. Save them as hub.json and node.json under seleniumgrid folder. "capabilityMatcher": ".utils.DefaultCapabilityMatcher",
#Jar filw with gecko driver not executing in another pc how to#
How to Start and Configure Hub and Nodes on MACįirst, download the hub and node config files from below addresses.
Hub sends requests to the nodes based on desired capabilities and executes the tests. Simply, we have a hub and several nodes, nodes are registered our hub and hub knows that which browsers are available.
jar file under the Documents > seleniumgrid folder as you see below.īasically, we have a Hub which is a server that we connect from our tests and we have Nodes, they can be on different machines and they register with the hub. Then, create a seleniumgrid folder under Documents and copy the. You may see a different version, pls do not panic, just download it. Now, please go to and download Selenium Standalone Server. Selenium team constantly updating the versions.