Adagio
8 years agoFrequent Contributor
Get a TextValue of an object thru it's Xpath
Hello,
Is there a way testComplete can read the text value of an element using the xpath of that element.
e.g. An address field has xpath as
var XpathOfAddField = //*[text() ='1515 Liberty Street];
is there a way we can print the XpathOfAddField text value in the logs by using any methods?
(I tried getText(), Text()...etc..nothing worked so far)
any help would be greatly appreciated.
Thank you
Abhi