royd
8 years agoRegular Contributor
Trouble with XPath, need guidance
Trying to use XPath to click "Logout" (menu link). Here is what I have:
page = "*.imedconsent.com/THC*" var logOut = page.FindChildByXPath("//a[@name='mainMenu_Logout']"); logOut.Click();
I am getting "JScript runtime error."
Line: 4 Column: 3
1. What does "Column: 3", how does TestComplete define Column?
2. What am I doing wrong?
I guess the problem is that page is a string, it must be a Page object:
page = Sys.Browser().Page("*.imedconsent.com/THC*");