Setting supported browsers by a node

As we saw earlier, when we register a node with a hub, by default, the node is shown as supporting five instances of the Firefox browser, five instances of the Chrome browser, and one instance of Internet Explorer, irrespective of whether the node actually supports them. But to register your node with the browsers of your choice, Selenium Grid provides a browser option, using which we can achieve this. Let's say we want our node to be registered to support Firefox, Chrome, and Safari; we can do that using the following command:

java -jar selenium-server-standalone-3.12.0.jar -role node -hub http://192.168.0.1:1111/grid/register -browser browserName=firefox -browser browserName=chrome -browser browserName=safari

The Grid Console looks like this:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.100.180