The __________ pattern in Java is especially useful for managing Selenium WebDriver instances.

  • Adapter
  • Factory
  • Observer
  • Singleton
The Singleton pattern in Java is especially useful for managing Selenium WebDriver instances. The Singleton pattern ensures that only one instance of the WebDriver is created and provides a global point of access to it. This helps in maintaining a single session throughout the test execution, improving performance and avoiding issues related to multiple instances of WebDriver.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *