public class SeleniumDriver extends Object
| Constructor | Description |
|---|---|
SeleniumDriver() |
|
SeleniumDriver(boolean killDriverInstancesFirst) |
|
SeleniumDriver(boolean killDriverInstancesFirst,
String seleniumHost) |
|
SeleniumDriver(boolean killDriverInstancesFirst,
String device,
String browser) |
|
SeleniumDriver(boolean killDriverInstancesFirst,
String seleniumHost,
String device,
String browser) |
|
SeleniumDriver(String seleniumHost) |
|
SeleniumDriver(String device,
String browser) |
|
SeleniumDriver(String seleniumHost,
String device,
String browser) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear(Object webElement) |
|
void |
click(Object webElement) |
|
void |
CloseDriver() |
|
<T> T |
executeJavaScript(Class<T> type,
String script,
Object... args) |
|
void |
executeJavaScriptNoReturnData(String script,
Object... args) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean waitUntilStable) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElement(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
Duration timeout) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElement(ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElementOrNull(HTMLElement parentElement,
ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
boolean allowMultipleMatches,
boolean waitUntilSingle,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
Duration timeout) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
Duration timeout,
boolean waitUntilStable) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval) |
|
HTMLElement |
findElementOrNull(ObjectMapping objectMapping,
Duration timeout,
Duration pollInterval,
boolean waitUntilStable) |
|
List<HTMLElement> |
findElements(HTMLElement parentElement,
ObjectMapping mapping) |
|
Set<String> |
getAllBrowserWindows() |
|
String |
getAttribute(Object webElement,
String attribute) |
|
Browsers |
getBrowser() |
|
String |
getCssValue(Object webElement,
String valueName) |
|
Browsers |
getDevice() |
|
Duration |
getElementFindTimeout() |
|
Exception |
getLastException() |
|
Duration |
getPageLoadTimeout() |
|
String |
getPageTitle() |
|
Duration |
getPollInterval() |
|
String |
getText(Object webElement,
boolean includeDescendantsText,
boolean scrollIntoViewFirst,
boolean useInnerTextAttribute) |
|
org.openqa.selenium.WebDriver |
getWebDriver() |
|
void |
gotoURL(String fullURLPath) |
|
boolean |
hasAttribute(Object webElement,
String attribute) |
|
boolean |
hasCssValue(Object webElement,
String valueName) |
|
boolean |
isDisplayed(Object webElement) |
|
boolean |
isEnabled(Object webElement) |
|
void |
scrollIntoView(Object webElement) |
|
Browsers |
setBrowser(Browsers browser) |
|
void |
setBrowserFullScreen() |
|
void |
setBrowserSize(int x,
int y) |
|
void |
setBrowserWindow(String handle) |
|
Browsers |
setDevice(Devices device) |
|
Duration |
setFindTimeout(Duration findTimeout) |
|
void |
setIFrame(HTMLElement htmlElement) |
|
Duration |
setPageLoadTimeout(Duration pageLoadTimeout) |
|
Duration |
setPollInterval(Duration pollInterval) |
|
void |
setText(Object webElement,
String text) |
|
String |
TakeScreenshot() |
|
String |
TakeScreenshot(String fileName) |
public SeleniumDriver(String seleniumHost)
public SeleniumDriver()
public SeleniumDriver(boolean killDriverInstancesFirst,
String seleniumHost,
String device,
String browser)
public SeleniumDriver(boolean killDriverInstancesFirst,
String seleniumHost)
public SeleniumDriver(boolean killDriverInstancesFirst,
String device,
String browser)
public SeleniumDriver(boolean killDriverInstancesFirst)
public Exception getLastException()
public Duration getElementFindTimeout()
public Duration getPollInterval()
public Duration getPageLoadTimeout()
public Browsers getBrowser()
public Browsers getDevice()
public void setBrowserWindow(String handle)
public void setIFrame(HTMLElement htmlElement)
public HTMLElement findElement(ObjectMapping objectMapping)
public HTMLElement findElement(ObjectMapping objectMapping, boolean waitUntilStable)
public HTMLElement findElement(ObjectMapping objectMapping, Duration timeout)
public HTMLElement findElement(ObjectMapping objectMapping, Duration timeout, boolean waitUntilStable)
public HTMLElement findElement(ObjectMapping objectMapping, Duration timeout, Duration pollInterval)
public HTMLElement findElement(ObjectMapping objectMapping, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElement(ObjectMapping objectMapping, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElement(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElement(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout)
public HTMLElement findElement(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, boolean waitUntilStable)
public HTMLElement findElement(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval)
public HTMLElement findElement(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout, Duration pollInterval)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval)
public HTMLElement findElementOrNull(ObjectMapping objectMapping)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean waitUntilStable)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, Duration timeout)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, Duration timeout, boolean waitUntilStable)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, Duration timeout, Duration pollInterval)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, boolean waitUntilStable)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval)
public HTMLElement findElementOrNull(ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout, Duration pollInterval)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, boolean waitUntilStable)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval)
public HTMLElement findElementOrNull(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public HTMLElement findElement(HTMLElement parentElement, ObjectMapping objectMapping, boolean allowMultipleMatches, boolean waitUntilSingle, Duration timeout, Duration pollInterval, boolean waitUntilStable)
public List<HTMLElement> findElements(HTMLElement parentElement, ObjectMapping mapping)
public org.openqa.selenium.WebDriver getWebDriver()
public void setBrowserSize(int x,
int y)
public void setBrowserFullScreen()
public void gotoURL(String fullURLPath)
public String getPageTitle()
public boolean isDisplayed(Object webElement)
public boolean isEnabled(Object webElement)
public void clear(Object webElement)
public String getText(Object webElement, boolean includeDescendantsText, boolean scrollIntoViewFirst, boolean useInnerTextAttribute)
public void click(Object webElement)
public void scrollIntoView(Object webElement)
public void executeJavaScriptNoReturnData(String script, Object... args)
public String TakeScreenshot()
public void CloseDriver()
Copyright © 2017–2018 Team Controlium Committers. All rights reserved.