royd
7 years agoRegular Contributor
aqObject.CheckProperty, url - cmpContains troubles!
Hi everyone
I am trying to verify patr of the url with the following -
aqObject.CheckProperty(Browsers.Item(Project.Variables.webBrowser).Window(0), "URL", cmpContains, "Login.aspx");
... but I am getting "TypeError: Browsers.Item(...).Window is not a function" error. I am probably making some silly mistake, but have no clue what that would be!
Help is deeply appreciated.
Dave
Hi Alex
Figured it out, hope this helps anyone in my situation. Following works -
aqObject.CheckProperty(Sys.Browser(Project.Variables.webBrowser).Page("*"), "url", cmpContains, "Login.aspx");