Interface HasDriver

All Known Implementing Classes:
TestBenchCommandExecutor, TestBenchElement

public interface HasDriver
An interface for classes that can provide an instance of a WebDriver
  • Method Summary

    Modifier and Type
    Method
    Description
    org.openqa.selenium.WebDriver
    Return the WebDriver instance associated with the implementing class instance.
  • Method Details

    • getDriver

      org.openqa.selenium.WebDriver getDriver()
      Return the WebDriver instance associated with the implementing class instance. This can be simply the class itself re-cast as a WebDriver, or a reference to some WebDriver obtainable by any other means.
      Returns:
      the contained WebDriver instance