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
ConstructorsConstructorDescriptionLazyDriver(Config config, @Nullable 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, isLocalBrowser, source, supportsJavascript, switchTo, url
-
Constructor Details
-
LazyDriver
-
-
Method Details
-
config
-
browser
-
hasWebDriverStarted
public boolean hasWebDriverStarted()- Specified by:
hasWebDriverStartedin interfaceDriver
-
getWebDriver
public org.openqa.selenium.WebDriver getWebDriver()- Specified by:
getWebDriverin interfaceDriver
-
getProxy
-
getAndCheckWebDriver
public org.openqa.selenium.WebDriver getAndCheckWebDriver()- Specified by:
getAndCheckWebDriverin interfaceDriver
-
browserDownloadsFolder
- Specified by:
browserDownloadsFolderin interfaceDriver
-
getBrowserLogs
Description copied from interface:DriverGet browser logs collected via BiDi protocol- Specified by:
getBrowserLogsin interfaceDriver- Returns:
- empty list if BiDi is not enabled in current webdriver instance
-
close
public void close()
-