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.
If the center of the element is in the container and is shown in the browser's client area, the element will be considered as 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, wait
getSupportedClassNames
protected Component parent
public EmbeddedObject(Component parent) throws SeleniumPlusException
SeleniumPlusException
public boolean isSupported(org.openqa.selenium.WebElement element)
isSupported
in interface Supportable
element
- 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 checkSeleniumPlusException
public org.openqa.selenium.WebElement webelement()
Copyright © SAS Institute. All Rights Reserved.