Class LazyDriver
java.lang.Object
com.codeborne.selenide.drivercommands.LazyDriver
- All Implemented Interfaces:
Driver
@ParametersAreNonnullByDefault
@NotThreadSafe
public class LazyDriver
extends Object
implements Driver
A `Driver` implementation which opens browser on demand (on a first call).
May be created with its own config, proxy and listeners.
This class is NOT thread-safe. Every thread should use its own instance.
-
Constructor Summary
ConstructorsConstructorDescriptionLazyDriver(Config config, org.openqa.selenium.Proxy userProvidedProxy, List<org.openqa.selenium.support.events.WebDriverListener> listeners) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.codeborne.selenide.Driver
actions, clearCookies, executeAsyncJavaScript, executeJavaScript, getCurrentFrameUrl, getSessionId, getUserAgent, source, supportsJavascript, switchTo, url
-
Constructor Details
-
LazyDriver
-
-
Method Details
-
config
-
browser
-
hasWebDriverStarted
public boolean hasWebDriverStarted()- Specified by:
hasWebDriverStartedin interfaceDriver
-
getWebDriver
@Nonnull public org.openqa.selenium.WebDriver getWebDriver()- Specified by:
getWebDriverin interfaceDriver
-
getProxy
-
getAndCheckWebDriver
@CheckReturnValue @Nonnull public org.openqa.selenium.WebDriver getAndCheckWebDriver()- Specified by:
getAndCheckWebDriverin interfaceDriver
-
browserDownloadsFolder
- Specified by:
browserDownloadsFolderin interfaceDriver
-
close
public void close()
-