public interface WebObject extends Control
Modifier and Type | Method and Description |
---|---|
Object |
evaluateXPath(String xPath)
Runs an XPath query and returns the result.
|
Object |
evaluateXPath(String xPath,
boolean searchInFrames)
Runs an XPath query and returns the result.
|
<T extends WebObject> |
findChildByXPath(Class clazz,
String xPath)
Finds a child object that matches the specified XPath query.
|
<T extends WebObject> |
findChildByXPath(Class clazz,
String xPath,
boolean searchInFrames) |
<T extends WebObject> |
querySelector(Class clazz,
String selector)
Finds a child object that matches the specified CSS selector.
|
<T extends WebObject> |
querySelectorAll(Class clazz,
String selector)
Finds all child objects that match the specified CSS selector.
|
click, click, click, clickM, clickM, clickM, clickR, clickR, clickR, dblClick, dblClick, dblClick, dblClickM, dblClickM, dblClickM, dblClickR, dblClickR, dblClickR, drag, drag, dragM, dragM, dragR, dragR, getEnabled, getHeight, getScreenLeft, getScreenTop, getVisible, getVisibleOnScreen, getWidth, hoverMouse, hoverMouse, keys, mouseWheel, mouseWheel, screenToWindow, windowToScreen
find, find, find, findAll, findAll, getChildren, getParent, tryFind, tryFind, tryFind, waitProperty, waitProperty
picture, picture, picture
callMethod, callMethod, cast, getProperty, setProperty, toString
Object evaluateXPath(String xPath) throws InvocationException, HttpException
xPath
- An XPath query.TestObject
that matches the specified XPath query, or the List
object that contains one or more objects of the type TestObject
, or simple types that match the specified XPath query, or an object of a simple type (string, int, etc.) as the result of a call to the XPath function or null.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.Object evaluateXPath(String xPath, boolean searchInFrames) throws InvocationException, HttpException
xPath
- An XPath query.searchInFrames
- Specifies whether to run the XPath query inside FRAMEs as well.TestObject
that matches the specified XPath query, or the List
List object that contains one or more objects of the type TestObject
, or simple types that match the specified XPath query, or an object of a simple type (string, int, etc.) as the result of a call to the XPath function or null.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.<T extends WebObject> T findChildByXPath(Class clazz, String xPath) throws InvocationException, HttpException
T
- The interface that will be implemented in the returned object.clazz
- The interface that will be implemented in the returned object.xPath
- The XPath query that describes the object to be returned.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.<T extends WebObject> T findChildByXPath(Class clazz, String xPath, boolean searchInFrames) throws InvocationException, HttpException
T
- The interface that will be implemented in the returned object.clazz
- The interface that will be implemented in the returned object.xPath
- The XPath query that describes the object to be returned.searchInFrames
- Specifies whether to search inside FRAMEs as well.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.<T extends WebObject> T querySelector(Class clazz, String selector) throws InvocationException, HttpException
T
- The interface that will be implemented in the returned object.clazz
- The interface that will be implemented in the returned object.selector
- A CSS selector that describes the object to be returned.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.<T extends WebObject> List<T> querySelectorAll(Class clazz, String selector) throws InvocationException, HttpException
T
- The interface that will be implemented in the collection items.clazz
- The interface that will be implemented in the collection items.selector
- A CSS selector that describes the objects to be returned.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.Copyright © 2020 SmartBear Software. All Rights Reserved.