public class FlashDriver extends Object implements org.openqa.selenium.WebDriver
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 |
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
delegate |
protected String |
flashObjectId |
| Constructor and Description |
|---|
FlashDriver(org.openqa.selenium.WebDriver delegate,
String flashObjectId) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(String functionName,
String... args) |
void |
click() |
void |
close() |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
protected org.openqa.selenium.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() |
org.openqa.selenium.WebDriver.Options |
manage() |
org.openqa.selenium.WebDriver.Navigation |
navigate() |
int |
percentLoaded() |
void |
quit() |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
protected org.openqa.selenium.WebDriver delegate
protected String flashObjectId
public FlashDriver(org.openqa.selenium.WebDriver delegate,
String flashObjectId)
protected org.openqa.selenium.WebElement findFlashObject(String flashObjectId)
public void click()
public int percentLoaded()
public void get(String s)
get in interface org.openqa.selenium.WebDriverpublic String getCurrentUrl()
getCurrentUrl in interface org.openqa.selenium.WebDriverpublic String getTitle()
getTitle in interface org.openqa.selenium.WebDriverpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebDriverpublic String getPageSource()
getPageSource in interface org.openqa.selenium.WebDriverpublic void close()
close in interface org.openqa.selenium.WebDriverpublic void quit()
quit in interface org.openqa.selenium.WebDriverpublic Set<String> getWindowHandles()
getWindowHandles in interface org.openqa.selenium.WebDriverpublic String getWindowHandle()
getWindowHandle in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.TargetLocator switchTo()
switchTo in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.Navigation navigate()
navigate in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.Options manage()
manage in interface org.openqa.selenium.WebDriverCopyright © 2017. All rights reserved.