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
ConstructorDescriptionLazyDriver
(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, wait
Methods inherited from interface com.codeborne.selenide.Driver
actions, clearCookies, executeAsyncJavaScript, executeJavaScript, getCurrentFrameUrl, getSessionId, getUserAgent, isLocalBrowser, source, supportsJavascript, switchTo, url
-
Constructor Details
-
LazyDriver
-
-
Method Details
-
config
-
browser
-
hasWebDriverStarted
public boolean hasWebDriverStarted()- Specified by:
hasWebDriverStarted
in interfaceDriver
-
getWebDriver
@Nonnull public org.openqa.selenium.WebDriver getWebDriver()- Specified by:
getWebDriver
in interfaceDriver
-
getProxy
-
getAndCheckWebDriver
@CheckReturnValue @Nonnull public org.openqa.selenium.WebDriver getAndCheckWebDriver()- Specified by:
getAndCheckWebDriver
in interfaceDriver
-
browserDownloadsFolder
- Specified by:
browserDownloadsFolder
in interfaceDriver
-
close
public void close()
-