Setting node health-check times

Using this configuration parameter, we can specify how frequently the hub can poll a node for its availability. The parameter that is used to achieve this is nodePolling. By specifying this to the hub at the node level, each node can specify its own frequency at which it can be health-checked. The command to configure your node is as follows:

 java -jar selenium-server-standalone-3.12.0.jar -role node -hub http://192.168.0.1:1111/grid/register -nodePolling 10

Now the hub will poll this node every 10 seconds, to check its availability.

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.