How to customize a Node There are times when we would like a Node to be customized to our needs. For e.g., we may like to do some additional setup before a session begins execution and some clean-up after a session runs to completion. Following steps can be followed for this: Create a class that extends org.openqa.selenium.grid.node.Node Add a static method (this will be our factory method) to the newly created class whose signature looks like this: