public interface ObjectTreeNode extends TestObject
| Modifier and Type | Method and Description |
|---|---|
<T extends ObjectTreeNode> |
find(Class clazz,
SearchPattern pattern)
Searches for an object that matches the specified pattern.
|
<T extends ObjectTreeNode> |
find(Class clazz,
SearchPattern pattern,
int depth)
Searches for an object that matches the specified pattern.
|
<T extends ObjectTreeNode> |
find(Class clazz,
SearchPattern pattern,
int depth,
int timeout)
Searches for an object that matches the specified pattern.
|
<T extends ObjectTreeNode> |
findAll(Class clazz,
SearchPattern pattern)
Searches for objects that match the specified pattern.
|
<T extends ObjectTreeNode> |
findAll(Class clazz,
SearchPattern pattern,
int depth)
Searches for objects that match the specified pattern.
|
List<ObjectTreeNode> |
getChildren()
Gets the collection of child objects.
|
ObjectTreeNode |
getParent()
The parent object.
|
<T extends ObjectTreeNode> |
tryFind(Class clazz,
SearchPattern pattern)
Searches for an object that matches the specified pattern.
|
<T extends ObjectTreeNode> |
tryFind(Class clazz,
SearchPattern pattern,
int depth)
Searches for an object that matches the specified pattern.
|
<T extends ObjectTreeNode> |
tryFind(Class clazz,
SearchPattern pattern,
int depth,
Integer timeout)
Searches for an object that matches the specified pattern.
|
boolean |
waitProperty(String propertyName,
Object propertyValue)
Delays the test execution until the specified property equals the specified value or until the default time limit @link options.generalSettings.autoWaitTimeout is reached.
|
boolean |
waitProperty(String propertyName,
Object propertyValue,
int timeout)
Delays the test execution until the specified property equals the specified value or until the specified time limit is reached.
|
callMethod, callMethod, cast, getProperty, setProperty, toString<T extends ObjectTreeNode> T find(Class clazz, SearchPattern pattern) throws ObjectTreeNodeNotFoundException, HttpException
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.pattern - The search pattern.ObjectTreeNodeNotFoundException - Will be thrown if no object that meets the specified criteria is found.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> T find(Class clazz, SearchPattern pattern, int depth) throws ObjectTreeNodeNotFoundException, HttpException
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.pattern - The search pattern.depth - The search depth.ObjectTreeNodeNotFoundException - Will be thrown if no object that meets the specified criteria is found.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> T find(Class clazz, SearchPattern pattern, int depth, int timeout) throws ObjectTreeNodeNotFoundException, HttpException
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.pattern - The search pattern.depth - The search depth.timeout - The timeout, in milliseconds, used to wait for the object.ObjectTreeNodeNotFoundException - Will be thrown if no object that meets the specified criteria is found.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> List<T> findAll(Class clazz, SearchPattern pattern) throws HttpException
T - The interface of the elements in the returned sequence.clazz - The interface of the elements in the returned sequence.pattern - The search pattern.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> List<T> findAll(Class clazz, SearchPattern pattern, int depth) throws HttpException
T - The interface of the elements in the returned sequence.clazz - The interface of the elements in the returned sequence.pattern - The search pattern.depth - The search depth.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> FindResult<T> tryFind(Class clazz, SearchPattern pattern) throws HttpException
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.pattern - The search pattern.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> FindResult<T> tryFind(Class clazz, SearchPattern pattern, int depth) throws HttpException
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.pattern - The search pattern.depth - The search depth.HttpException - Thrown if there are network problems.<T extends ObjectTreeNode> FindResult<T> tryFind(Class clazz, SearchPattern pattern, int depth, Integer timeout) throws HttpException
T - The interface that will be implemented in the returned object.clazz - The interface that will be implemented in the returned object.pattern - The search pattern.depth - The search depth.timeout - The timeout used to wait for the object.HttpException - Thrown if there are network problems.ObjectTreeNode getParent() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.boolean waitProperty(String propertyName, Object propertyValue) throws InvocationException, HttpException
propertyName - The property name.propertyValue - The property value.InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.boolean waitProperty(String propertyName, Object propertyValue, int timeout) throws InvocationException, HttpException
propertyName - The property name.propertyValue - The property value.timeout - The time limit.InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.List<ObjectTreeNode> getChildren() throws InvocationException, HttpException
InvocationException - Will be thrown if invocation fails.HttpException - Will be thrown if there are network problems.Copyright © 2020 SmartBear Software. All Rights Reserved.