public class FlashDriver extends Object
A WebDriver decorator that allows interaction with a Flash object via Javascript calls.
The WebDriver must be an instance of JavascriptExecutor.
The Flash object is found via the object ID provided.
| Modifier and Type | Class and Description |
|---|---|
static class |
FlashDriver.JavascriptNotSupported |
| Modifier and Type | Field and Description |
|---|---|
protected WebDriver |
delegate |
protected String |
flashObjectId |
| Constructor and Description |
|---|
FlashDriver(WebDriver delegate,
String flashObjectId) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(String functionName,
String... args) |
void |
click() |
void |
close() |
WebElement |
findElement(By by) |
List<WebElement> |
findElements(By by) |
protected WebElement |
findFlashObject(String flashObjectId) |
protected String |
formatJavascript(String functionName,
String... args) |
void |
get(String s) |
String |
getCurrentUrl() |
String |
getPageSource() |
String |
getTitle() |
String |
getWindowHandle() |
Set<String> |
getWindowHandles() |
Options |
manage() |
Navigation |
navigate() |
int |
percentLoaded() |
void |
quit() |
TargetLocator |
switchTo() |
protected WebDriver delegate
protected String flashObjectId
public FlashDriver(WebDriver delegate,
String flashObjectId)
protected WebElement findFlashObject(String flashObjectId)
public void click()
public int percentLoaded()
public void get(String s)
public String getCurrentUrl()
public String getTitle()
public List<WebElement> findElements(By by)
public WebElement findElement(By by)
public String getPageSource()
public void close()
public void quit()
public String getWindowHandle()
public TargetLocator switchTo()
public Navigation navigate()
public Options manage()
Copyright © 2003–2017. All rights reserved.