aa1
6 years agoContributor
FindChildByXPath
Hi all,
I am a newbie on testcomplete. I am trying to use the FindChildByXPath to find/validate the title of the page. I am not sure what is wrong in this line. The error I get says 'label' is undefined. I have made sure that the classname is correct and ttl does populate the correct title name. All the line is supposed to do is to trturn back the obj so that next step I can compare the obj.contentText with the page title and confirm that it is the same.
obj = page.FindChildByXPath("//DIV[@class='classnameforrightColumn']/descendant-or-self::*[contains(text(),'" + CutOffString(ttl) + "')]");
Any ideas anyone?
thank you.