| Modifier and Type | Field and Description |
|---|---|
protected double |
implicitWait
Implicit wait in milliseconds
|
String |
remoteWebDriverProxyDomain |
String |
remoteWebDriverProxyHost |
String |
remoteWebDriverProxyPassword |
String |
remoteWebDriverProxyPort |
String |
remoteWebDriverProxyUser |
String |
remoteWebDriverProxyWorkstation |
protected double |
timeout
Timeout in milliseconds
|
protected WebDriverCache |
webDriverCache
Cache for all open browsers.
|
| Constructor and Description |
|---|
BrowserManagement() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAllBrowsers() |
void |
closeBrowser() |
void |
closeWindow() |
protected org.openqa.selenium.remote.DesiredCapabilities |
createDesiredCapabilities(String browserName,
String desiredCapabilitiesString,
String profileDirectory) |
protected org.openqa.selenium.WebDriver |
createLocalWebDriver(String browserName,
org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities) |
protected org.openqa.selenium.WebDriver |
createRemoteWebDriver(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
URL remoteUrl) |
protected org.openqa.selenium.WebDriver |
createWebDriver(String browserName,
String desiredCapabilitiesString,
String profileDirectory,
String remoteUrlString) |
protected abstract void |
debug(String msg) |
protected abstract List<org.openqa.selenium.WebElement> |
elementFind(String locator,
boolean firstOnly,
boolean required) |
String |
getLocation() |
protected abstract File |
getLogDir() |
protected String |
getPasswordFromURL(URL url) |
String |
getSeleniumImplicitWait() |
String |
getSeleniumSpeed() |
String |
getSeleniumTimeout() |
String |
getSource() |
String |
getTitle() |
protected String |
getUserFromURL(URL url) |
List<String> |
getWindowIdentifiers() |
List<String> |
getWindowNames() |
List<String> |
getWindowTitles() |
void |
goBack() |
void |
goTo(String url) |
protected abstract void |
html(String msg) |
protected abstract void |
info(String msg) |
void |
locationShouldBe(String url) |
void |
locationShouldContain(String url) |
protected abstract void |
log(String msg,
String logLevel) |
protected abstract List<String> |
logList(List<String> items) |
protected abstract List<String> |
logList(List<String> items,
String what) |
String |
logLocation() |
String |
logSource() |
String |
logSource(String logLevel) |
String |
logTitle() |
void |
maximizeBrowserWindow() |
String |
openBrowser(String url) |
String |
openBrowser(String url,
String browserName) |
String |
openBrowser(String url,
String browserName,
String alias) |
String |
openBrowser(String url,
String browserName,
String alias,
String remoteUrl) |
String |
openBrowser(String url,
String browserName,
String alias,
String remoteUrl,
String desiredCapabilities) |
String |
openBrowser(String url,
String browserName,
String alias,
String remoteUrl,
String desiredCapabilities,
String ffProfileDir) |
void |
reloadPage() |
void |
selectFrame(String locator) |
void |
selectWindow() |
void |
selectWindow(String locator) |
String |
setBrowserImplicitWait(String timestr) |
protected void |
setRemoteWebDriverProxy(org.openqa.selenium.remote.HttpCommandExecutor httpCommandExecutor) |
void |
setRemoteWebDriverProxy(String host,
String port) |
void |
setRemoteWebDriverProxy(String host,
String port,
String user,
String password) |
void |
setRemoteWebDriverProxy(String host,
String port,
String user,
String password,
String domain,
String workstation) |
String |
setSeleniumImplicitWait(String timestr) |
String |
setSeleniumSpeed(String timestr) |
String |
setSeleniumTimeout(String timestr) |
void |
switchBrowser(String indexOrAlias) |
void |
titleShouldBe(String title) |
protected abstract void |
trace(String msg) |
void |
unselectFrame() |
protected abstract void |
warn(String msg) |
public String remoteWebDriverProxyHost
public String remoteWebDriverProxyPort
public String remoteWebDriverProxyUser
public String remoteWebDriverProxyPassword
public String remoteWebDriverProxyDomain
public String remoteWebDriverProxyWorkstation
protected WebDriverCache webDriverCache
protected double timeout
protected double implicitWait
public void closeBrowser()
public String openBrowser(String url, String browserName) throws Throwable
Throwablepublic String openBrowser(String url, String browserName, String alias) throws Throwable
Throwablepublic String openBrowser(String url, String browserName, String alias, String remoteUrl) throws Throwable
Throwablepublic String openBrowser(String url, String browserName, String alias, String remoteUrl, String desiredCapabilities) throws Throwable
Throwablepublic String openBrowser(String url, String browserName, String alias, String remoteUrl, String desiredCapabilities, String ffProfileDir) throws Throwable
Throwablepublic void switchBrowser(String indexOrAlias)
public void closeAllBrowsers()
public void closeWindow()
public void maximizeBrowserWindow()
public void selectFrame(String locator)
public void selectWindow()
public void selectWindow(String locator)
public void unselectFrame()
public String getLocation()
public String getSource()
public String getTitle()
public void locationShouldBe(String url)
public void locationShouldContain(String url)
public String logLocation()
public String logSource()
public String logTitle()
public void titleShouldBe(String title)
public void goBack()
public void goTo(String url)
public void reloadPage()
public String getSeleniumSpeed()
public String getSeleniumTimeout()
public String getSeleniumImplicitWait()
public void setRemoteWebDriverProxy(String host, String port, String user, String password)
public void setRemoteWebDriverProxy(String host, String port, String user, String password, String domain, String workstation)
protected org.openqa.selenium.WebDriver createWebDriver(String browserName, String desiredCapabilitiesString, String profileDirectory, String remoteUrlString) throws MalformedURLException
MalformedURLExceptionprotected org.openqa.selenium.WebDriver createLocalWebDriver(String browserName, org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
protected org.openqa.selenium.WebDriver createRemoteWebDriver(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
URL remoteUrl)
protected org.openqa.selenium.remote.DesiredCapabilities createDesiredCapabilities(String browserName, String desiredCapabilitiesString, String profileDirectory)
protected void setRemoteWebDriverProxy(org.openqa.selenium.remote.HttpCommandExecutor httpCommandExecutor)
protected abstract List<org.openqa.selenium.WebElement> elementFind(String locator, boolean firstOnly, boolean required)
protected abstract void trace(String msg)
protected abstract void debug(String msg)
protected abstract void info(String msg)
protected abstract void html(String msg)
protected abstract void warn(String msg)
protected abstract File getLogDir()
Copyright © 2013. All Rights Reserved.