Class LazyDriver
java.lang.Object
com.codeborne.selenide.drivercommands.LazyDriver
- All Implemented Interfaces:
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, @Nullable org.openqa.selenium.Proxy userProvidedProxy, List<org.openqa.selenium.support.events.WebDriverListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionbrowser()
@Nullable DownloadsFolder
void
close()
config()
org.openqa.selenium.WebDriver
getProxy()
org.openqa.selenium.WebDriver
boolean
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
public org.openqa.selenium.WebDriver getWebDriver()- Specified by:
getWebDriver
in interfaceDriver
-
getProxy
-
getAndCheckWebDriver
public org.openqa.selenium.WebDriver getAndCheckWebDriver()- Specified by:
getAndCheckWebDriver
in interfaceDriver
-
browserDownloadsFolder
- Specified by:
browserDownloadsFolder
in interfaceDriver
-
close
public void close()
-