protected abstract class Component.EmbeddedObject extends java.lang.Object implements Component.Supportable
Modifier and Type | Field and Description |
---|---|
protected WebElement |
element
The embedded WebElement object.
This element may become stale, see stale_element If the element is stale, we need to refresh it by getting it again (by id or css or other ways) |
Constructor and Description |
---|
Component.EmbeddedObject(WebElement element) |
Modifier and Type | Method and Description |
---|---|
void |
refresh(boolean checkStale)
A stale element reference exception is thrown in one of two cases, the first being more common than the second:
1. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedClassNames, isSupported
protected WebElement element
#refresh()
public Component.EmbeddedObject(WebElement element) throws SeleniumPlusException
SeleniumPlusException
public void refresh(boolean checkStale)
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.