FindChild method error - "Object doesn't support this property or method"
Hallo All
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!
Appreciate any help.
Thanks
Dave.
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();