Forum Discussion

royd's avatar
royd
Regular Contributor
8 years ago

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...
  • HKosova's avatar
    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*");