Forum Discussion
4 Replies
Sort By
- tristaanogreEsteemed ContributorThe problem may not be in the wait child for the link, but in the panel that the link is a child of. Something to look at is whether or not that panel exists prior to logging in.
- jonjdaveyOccasional ContributorThanks for your response.
I did think of that, so tried running this code:
Set
logoutLink =
Sys.Process("iexplore").Page(uRL).Panel(0).Panel(0).WaitChild("Panel(1)",
1000)
Set
logoutLink =
Sys.Process("iexplore").Page(uRL).Panel(0).Panel(0).Panel(1).WaitChild("Link(2)",
1000)
However the code only fails on the second line (the new Link(2) object), so that does not appear to be the problem
Hi Jonathan,
Try using the 'WaitLink' method:
Set logoutLink = Sys.Process("iexplore").Page(uRL).Panel(0).Panel(0).Panel(1).WaitLink(2, 10000)
Please see the 'Additional Methods Used to Obtain Web Pages Elements' section of the Working With Web Page Elements help topic.- jonjdaveyOccasional ContributorHi David,
Thanks for your response.
I had previously tried the WaitLink method but did not realise that I could specify my link using an index. Using the link name does not work, but using an index, as you suggest, did work. So thanks very much for your help!