public abstract class EmbeddedObject extends java.lang.Object implements Supportable
Supportable.getSupportedClassNames().| Modifier and Type | Field and Description |
|---|---|
protected Component |
parent
The Component object who is the parent of this embedded object.
|
| Constructor and Description |
|---|
EmbeddedObject(Component parent) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isShowOnPage(Element element)
To check if an Element is visible on page.
|
boolean |
isSupported(org.openqa.selenium.WebElement element)
Test if the element is supported.
|
boolean |
refresh(boolean checkStale)
If some native javascript APIs are called, the parent's under-lying web element may become stale.
|
org.openqa.selenium.WebElement |
webelement() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedClassNamesprotected Component parent
public EmbeddedObject(Component parent) throws SeleniumPlusException
SeleniumPlusExceptionpublic boolean isSupported(org.openqa.selenium.WebElement element)
isSupported in interface Supportableelement - WebElement, the element to check.public boolean refresh(boolean checkStale)
webelement() to get a webelement, you may call this refresh(boolean).checkStale - boolean, if true then check if the element is stale or not before refresh;
ohterwise, then refresh the element directly.
The check will spend some time, if you don't want to waste time, use false.webelement()protected boolean isShowOnPage(Element element) throws SeleniumPlusException
element - Element, the element to checkSeleniumPlusExceptionpublic org.openqa.selenium.WebElement webelement()
Copyright © SAS Institute. All Rights Reserved.