Package com.codeborne.selenide.impl
Interface WebDriverContainer
- All Known Implementing Classes:
WebDriverThreadLocalContainer
public interface WebDriverContainer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(org.openqa.selenium.support.events.WebDriverListener listener) void
void
void
org.openqa.selenium.WebDriver
@Nullable DownloadsFolder
@Nullable String
@Nullable String
org.openqa.selenium.WebDriver
boolean
void
inNewBrowser
(Config config, Runnable lambda) void
inNewBrowser
(Runnable lambda) void
removeListener
(org.openqa.selenium.support.events.WebDriverListener listener) void
setProxy
(@Nullable org.openqa.selenium.Proxy webProxy) void
setWebDriver
(org.openqa.selenium.WebDriver webDriver) void
setWebDriver
(org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy) void
setWebDriver
(org.openqa.selenium.WebDriver webDriver, @Nullable SelenideProxyServer selenideProxy, DownloadsFolder browserDownloadsFolder) void
using
(org.openqa.selenium.WebDriver driver, @Nullable SelenideProxyServer proxy, @Nullable 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
org.openqa.selenium.WebDriver getWebDriver() -
getProxyServer
SelenideProxyServer getProxyServer() -
setProxy
void setProxy(@Nullable org.openqa.selenium.Proxy webProxy) -
getAndCheckWebDriver
org.openqa.selenium.WebDriver getAndCheckWebDriver() -
getBrowserDownloadsFolder
@Nullable DownloadsFolder 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
-
inNewBrowser
-
clearBrowserCache
void clearBrowserCache() -
getPageSource
@Nullable String getPageSource() -
getCurrentUrl
@Nullable String getCurrentUrl() -
getCurrentFrameUrl
String getCurrentFrameUrl()
-