com.vaadin.testbench.HasDriver Maven / Gradle / Ivy
/**
* Copyright (C) 2000-2022 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.testbench;
import org.openqa.selenium.WebDriver;
/**
* An interface for classes that can provide an instance of a {@link WebDriver}
*/
public interface HasDriver {
/**
* Return the {@link 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.
*
* @return the contained WebDriver instance
*/
WebDriver getDriver();
}