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
ConstructorDescriptionWebDriverWrapper
(Config config, org.openqa.selenium.WebDriver webDriver, SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder) -
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
-
WebDriverWrapper
public WebDriverWrapper(Config config, org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder)
-
-
Method Details
-
config
-
browser
-
hasWebDriverStarted
@CheckReturnValue public boolean hasWebDriverStarted()- Specified by:
hasWebDriverStarted
in interfaceDriver
-
getWebDriver
@CheckReturnValue @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()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.
-