public abstract static class SearchObject.DOJO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOJOTABCONTROL
"DOJOTabControl"
|
static java.lang.String |
DOJOTOOLBAR
"DOJOToolbar"
|
Constructor and Description |
---|
DOJO() |
Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.SearchContext |
findElement(org.openqa.selenium.SearchContext sc,
java.lang.String rst)
Attempt to process a DOJO recognition string like:
DOJOTabControl;id=mainTabs, or DOJOToolbar;id=toolbar, etc...
|
static java.lang.String |
getDojoClassName(org.openqa.selenium.WebElement element) |
protected static java.lang.String |
getDojoClassNameByCSSSelector(java.lang.String cssselector) |
protected static java.lang.String |
getDojoClassNameById(java.lang.String id) |
static java.util.Map |
getDojoScopemap()
When executed, should return a Map object with keys "dojo", "dijit", and "dojox".
Dojo libraries not present in the browser will not have keys in the Map. Values of these keys are usually "dojo", "dijit", and "dojox"; respectively. |
static java.lang.String |
getRecognition(org.openqa.selenium.WebElement element)
Create a dojo-specific recognition string we would use to find this element again.
|
(package private) static boolean |
isDijitComponent(org.openqa.selenium.WebElement element)
To test if the WebElement represents a Dojo.Dijit component.
|
static boolean |
isSupported(org.openqa.selenium.WebElement element,
java.lang.String[] supportedClassNames) |
protected static java.lang.Object |
toDojoObject(org.openqa.selenium.WebElement element)
Attention:
Do NOT call this method directly!
The DOJO object is very big, selenium will spend a lot of time to convert it. Calling this will make your program looks like dead. TODO add timeout, maybe. |
public static final java.lang.String DOJOTABCONTROL
public static final java.lang.String DOJOTOOLBAR
public static java.util.Map getDojoScopemap()
static boolean isDijitComponent(org.openqa.selenium.WebElement element) throws SeleniumPlusException
element
- SeleniumPlusException
public static org.openqa.selenium.SearchContext findElement(org.openqa.selenium.SearchContext sc, java.lang.String rst)
Currently supported Types:
Currently supported qualifiers:
sc
- rst
- public static java.lang.String getRecognition(org.openqa.selenium.WebElement element)
SearchObject.DOMAIN_DOJO
element
- public static java.lang.String getDojoClassName(org.openqa.selenium.WebElement element) throws SeleniumPlusException
element
- WebElement, it MUST wrap a DOJO object.SeleniumPlusException
public static boolean isSupported(org.openqa.selenium.WebElement element, java.lang.String[] supportedClassNames)
protected static java.lang.Object toDojoObject(org.openqa.selenium.WebElement element)
element
- WebElement represents a DOJO object on page.protected static java.lang.String getDojoClassNameById(java.lang.String id)
id
- String, the HTML id for an DOJO element on page.protected static java.lang.String getDojoClassNameByCSSSelector(java.lang.String cssselector)
cssselector
- String, the 'CSS Selector' for an DOJO element on page, it can be used to find the DOM object.
The 'CSS Selector' can be something like table[@class='dijitReset dijitStretch dijitButtonContents']Copyright © SAS Institute. All Rights Reserved.