While capturing (Inspect Path) the application object, The objects are indexed with XPATH for identification of objects during play back.
Whereas my clarification is whether is there any class or method available in OATS to identify the application object with combination of object properties instead of the captured XPATH.
Could anybody pls help in this regard ASAP.
for example : if you want to get an object in a webpage (say textbox) with attributes
name = myString
id = textBox123
value = string
Use following code:
DOMElement textBox = web.textBox("/web:window[@index='0']/web:document[@index='0']/web:form[@index='0']/web:input_text[@name='myObject' and @id='textBox123' and @value='sample']");
then you can use textBox.setText("myString")