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 g...
- 8 years ago
I guess the problem is that page is a string, it must be a Page object:
page = Sys.Browser().Page("*.imedconsent.com/THC*");