Class WebDriverWrapper
java.lang.Object
com.codeborne.selenide.drivercommands.WebDriverWrapper
- All Implemented Interfaces:
Driver
A `Driver` implementation which uses given webdriver [and proxy].
It doesn't open a new browser.
It doesn't start a new proxy.
-
Constructor Summary
ConstructorsConstructorDescriptionWebDriverWrapper(Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder) -
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
-
WebDriverWrapper
public WebDriverWrapper(Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder)
-
-
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()Close the webdriver.NB! The behaviour was changed in Selenide 5.4.0 Even if webdriver was created by user - it will be closed. It may hurt if you try to use this browser after closing.
-