public class TestObject
Constructor and description |
---|
TestObject
(String objectId) |
TestObject
() |
Type Params | Return Type | Name and description |
---|---|---|
|
public TestObject |
addProperty(TestObjectProperty property) Add a new property to the test object |
|
public TestObject |
addProperty(String name, ConditionType condition, String value) Add a new property to the test object |
|
public TestObject |
addProperty(String name, ConditionType condition, String value, boolean isActive) Add a new property to the test object |
|
public TestObject |
addXpath(TestObjectXpath xpath) Add a new property to the test object |
|
public TestObject |
addXpath(String name, ConditionType condition, String value) Add a new property to the test object |
|
public TestObject |
addXpath(String name, ConditionType condition, String value, boolean isActive) Add a new property to the test object |
|
public TestObjectProperty |
findProperty(String name) Find the property using the property name |
|
public String |
findPropertyValue(String name) Find the value of a property using the property name |
|
public String |
findPropertyValue(String name, boolean caseSensitive) Find the value of a property using the property name |
|
public TestObjectXpath |
findXpath(String name) Find the property using the property name |
|
public String |
findXpathValue(String name) Find the value of a property using the property name |
|
public String |
findXpathValue(String name, boolean caseSensitive) Find the value of a property using the property name |
|
public List<TestObjectProperty> |
getActiveProperties() Get all active properties of the test object |
|
public List<TestObjectXpath> |
getActiveXpaths() Get all active properties of the test object |
|
public WebElement |
getCachedWebElement() Retrieve cached WebElement set by TestObject.setCachedWebElement |
|
public String |
getImagePath() Get the path of the image this test object contains |
|
public String |
getObjectId() Get the id of this test object |
|
public TestObject |
getParentObject() Get the parent object of this test object |
|
public List<TestObjectProperty> |
getProperties() Get all properties of the test object |
|
public Map<SelectorMethod, String> |
getSelectorCollection() |
|
public SelectorMethod |
getSelectorMethod() |
|
public Map<SelectorMethod, String> |
getSmartSelectorCollection() |
|
public boolean |
getUseRelativeImagePath() Check if the path of the image this test object contains is relative or not |
|
public List<TestObjectXpath> |
getXpaths() Get all properties of the test object |
|
public boolean |
isParentObjectShadowRoot() |
|
public void |
setCachedWebElement(WebElement cachedWebElement) Set a cached WebElement to this TestObject. |
|
public void |
setImagePath(String imagePath) Set the path of the image this test object contains |
|
public void |
setParentObject(TestObject parentObject) Set the parent object of this test object |
|
public void |
setParentObjectShadowRoot(boolean isParentObjectShadowRoot) |
|
public void |
setProperties(List<TestObjectProperty> properties) Set the properties of the test object |
|
public void |
setSelectorMethod(SelectorMethod selectorMethod) |
|
public void |
setSelectorValue(SelectorMethod selectorMethod, String selectorValue) |
|
public void |
setSmartSelectorCollection(Map<SelectorMethod, String> smartSelectorCollection) |
|
public void |
setUseRelativeImagePath(boolean useRelativeImagePath) Set if the path of the image this test object contains is relative or not |
|
public void |
setXpaths(List<TestObjectXpath> xpaths) Set the properties of the test object |
|
public String |
toString() |
Add a new property to the test object
property
- the new TestObjectProperty to addAdd a new property to the test object
name
- the name of the new propertycondition
- the ConditionType of the new propertyvalue
- the value of the new propertyAdd a new property to the test object
name
- the name of the new propertycondition
- the ConditionType of the new propertyvalue
- the value of the new propertyisActive
- the active flag of the new propertyAdd a new property to the test object
xpath
- the new TestObjectProperty to addAdd a new property to the test object
name
- the name of the new propertycondition
- the ConditionType of the new propertyvalue
- the value of the new propertyAdd a new property to the test object
name
- the name of the new propertycondition
- the ConditionType of the new propertyvalue
- the value of the new propertyisActive
- the active flag of the new propertyFind the property using the property name
name
- the name of the property to findFind the value of a property using the property name
name
- the name of the property to findFind the value of a property using the property name
name
- the name of the property to findcaseSensitive
- boolean value to indicate if the finding process is case sensitive or notFind the property using the property name
name
- the name of the property to findFind the value of a property using the property name
name
- the name of the property to findFind the value of a property using the property name
name
- the name of the property to findcaseSensitive
- boolean value to indicate if the finding process is case sensitive or notGet all active properties of the test object
Get all active properties of the test object
Retrieve cached WebElement set by TestObject.setCachedWebElement
Get the path of the image this test object contains
Get the id of this test object
Get the parent object of this test object
Get all properties of the test object
Check if the path of the image this test object contains is relative or not
Get all properties of the test object
Set a cached WebElement to this TestObject. This cached WebElement will be used by built-in keywords instead of calling Selenium API to retrieve WebElement from TestObject's properties
Set the path of the image this test object contains
imagePath
- the new image path to setSet the parent object of this test object
parentObject
- the parent object to setSet the properties of the test object
properties
- a list of properties to set to the test objectSet if the path of the image this test object contains is relative or not
useRelativeImagePath
- the boolean value indicate if the path of the image this test object contains is
relative or notSet the properties of the test object
xpaths
- a list of properties to set to the test object