July 2019
Intermediate to advanced
536 pages
12h 57m
English
In this section, a Java singleton class will be used to create the driver class. This will force the user to use the same object for all instances where the WebDriver is required. The WebDriver events will never get out of sync during the run, and all WebDriver events will get sent to the correct browser or mobile device instance. And since the instance of the class is created on a single thread, referencing it won't interfere with other WebDriver instances running on the same node simultaneously.
As per Wikipedia (https://en.wikipedia.org/wiki/Singleton_pattern):
Read now
Unlock full access