Forum Discussion
royd wrote:
Am accessing email from Malinator.com. Never had issues before, but this morning I am getting an error when I try the following:
var page = "https://www.mailinator.com/inbox2.jsp*"; page.FindChild("contentText", "Important Information from THC", 20).Click();I am using TestComplete 12, IE11 and JScript. It is worth mentioning that I have checked that all my Web extensions are enabled (I had a situation here few of them were unchecked!).
P.S.: Just noticed that, while typing "page.FindChild("contentText", "Important Information from THC", 20).Cli ...", autocomplete is not popping up!
Hi Dave,
The problem is that page is a string, it should be a Page object:
var url = "https://www.mailinator.com/inbox2.jsp*"; var page = Sys.Browser().Page(url); page.FindChild("contentText", "Important Information from THC", 20).Click();
or if using Name Mapping/Aliases:
Aliases.browser.pageMailinator.FindChild("contentText", "Important Information from THC", 20).Click();
- tristaanogre9 years agoEsteemed Contributor
HKosova wrote:
Hi Dave,
The problem is that page is a string, it should be a Page object:
var url = "https://www.mailinator.com/inbox2.jsp*"; var page = Sys.Browser().Page(url); page.FindChild("contentText", "Important Information from THC", 20).Click();
or if using Name Mapping/Aliases:
Aliases.browser.pageMailinator.FindChild("contentText", "Important Information from THC", 20).Click();
What she said... dang it, but I should have caught that... this is why she's a paid SmartBear employee and I'm not. ;)
- royd9 years agoRegular Contributor
Hi Robert
I am such a newb, and throw such wacky problems at you guys! Understandably, you are scratching your head trying to help me! But these are all valuable lessons learned at your (and the community at large) expense!
Thank you all! :)
- royd9 years agoRegular Contributor
Thanks, Helen! Sometimes I get all these mixed up! Thank you for pointing out my mistake.