Package com.codeborne.selenide.impl
Interface WebDriverContainer
- All Known Implementing Classes:
WebDriverThreadLocalContainer
@ParametersAreNonnullByDefault
public interface WebDriverContainer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(org.openqa.selenium.support.events.WebDriverListener listener) void
void
void
org.openqa.selenium.WebDriver
org.openqa.selenium.WebDriver
boolean
void
inNewBrowser
(Runnable lambda) void
removeListener
(org.openqa.selenium.support.events.WebDriverListener listener) void
setProxy
(org.openqa.selenium.Proxy webProxy) void
setWebDriver
(org.openqa.selenium.WebDriver webDriver) void
setWebDriver
(org.openqa.selenium.WebDriver webDriver, SelenideProxyServer selenideProxy) void
setWebDriver
(org.openqa.selenium.WebDriver webDriver, SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder) void
using
(org.openqa.selenium.WebDriver driver, SelenideProxyServer proxy, DownloadsFolder downloadsFolder, Runnable lambda)
-
Method Details
-
addListener
void addListener(org.openqa.selenium.support.events.WebDriverListener listener) -
removeListener
void removeListener(org.openqa.selenium.support.events.WebDriverListener listener) -
setWebDriver
void setWebDriver(org.openqa.selenium.WebDriver webDriver) -
setWebDriver
void setWebDriver(org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy) -
setWebDriver
void setWebDriver(org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder) -
getWebDriver
@CheckReturnValue @Nonnull org.openqa.selenium.WebDriver getWebDriver() -
getProxyServer
-
setProxy
void setProxy(@Nullable org.openqa.selenium.Proxy webProxy) -
getAndCheckWebDriver
@CheckReturnValue @Nonnull org.openqa.selenium.WebDriver getAndCheckWebDriver() -
getBrowserDownloadsFolder
-
closeWindow
void closeWindow() -
closeWebDriver
void closeWebDriver() -
hasWebDriverStarted
boolean hasWebDriverStarted() -
using
void using(org.openqa.selenium.WebDriver driver, @Nullable SelenideProxyServer proxy, @Nullable DownloadsFolder downloadsFolder, Runnable lambda) -
inNewBrowser
-
clearBrowserCache
void clearBrowserCache() -
getPageSource
-
getCurrentUrl
-
getCurrentFrameUrl
-