public abstract static class SearchObject.SAP
extends java.lang.Object
Constructor and Description |
---|
SAP() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getRecognition(org.openqa.selenium.WebElement element)
Create a sap-specific recognition string we would use to find this element again.
|
static java.lang.String |
getSAPClassName(org.openqa.selenium.WebElement element) |
protected static java.lang.Object |
getSAPClassNameById(java.lang.String id) |
static java.util.List<java.lang.String> |
getSAPClassNames(org.openqa.selenium.WebElement element) |
protected static java.lang.Object |
getSAPClassNamesById(java.lang.String id) |
(package private) static boolean |
isSapComponent(org.openqa.selenium.WebElement element)
To test if the WebElement represents a SAP OpenUI5 component.
|
static boolean |
isSupported(org.openqa.selenium.WebElement element,
java.lang.String[] supportedClassNames)
Test if the element is supported.
|
protected static java.lang.Object |
toSAPObject(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. |
static boolean isSapComponent(org.openqa.selenium.WebElement element) throws SeleniumPlusException
element
- SeleniumPlusException
public static java.lang.String getRecognition(org.openqa.selenium.WebElement element)
SearchObject.DOMAIN_SAP
element
- public static java.util.List<java.lang.String> getSAPClassNames(org.openqa.selenium.WebElement element) throws SeleniumPlusException
element
- WebElement, it MUST wrap a SAP object.SeleniumPlusException
public static java.lang.String getSAPClassName(org.openqa.selenium.WebElement element) throws SeleniumPlusException
element
- WebElement, it MUST wrap a SAP object.SeleniumPlusException
public static boolean isSupported(org.openqa.selenium.WebElement element, java.lang.String[] supportedClassNames)
element
- WebElement, the element to check.supportedClassNames
- String[], the supported class namesprotected static java.lang.Object toSAPObject(org.openqa.selenium.WebElement element)
element
- WebElement represents a DOJO object on page.protected static java.lang.Object getSAPClassNamesById(java.lang.String id)
id
- String, the HTML id for an SAP element on page.protected static java.lang.Object getSAPClassNameById(java.lang.String id)
id
- String, the HTML id for an SAP element on page.Copyright © SAS Institute. All Rights Reserved.