Forum Discussion
JavierCollRodri
13 years agoContributor
Hi Ram,
I think there has been a misunderstand. Test Complete allows you to wait until a page has been fully loaded, but it does not trigger when you click on a link. So, you have to add it on the script. In your code:
If UBound(links) > 0 Then
For i = 0 To UBound(links)
links(i).click()
page = Sys.Browser("*").WaitPage("*", 5000)
Next
End If
This should wait until 5 seconds until the page is fully loaded (in javascript, document is ready). You should also search again the 'panel' container in case it is destroyed
About the fact that you don't know what will be shown in the next screen when you click on a link, there is a big problem: you should. Try talking to your application development team to find a way to solve that, as it will help you developing faster and more secure automation scripts. If you want to know more, in my blog I talk a little about this.
I hope it helped
I think there has been a misunderstand. Test Complete allows you to wait until a page has been fully loaded, but it does not trigger when you click on a link. So, you have to add it on the script. In your code:
If UBound(links) > 0 Then
For i = 0 To UBound(links)
links(i).click()
page = Sys.Browser("*").WaitPage("*", 5000)
Next
End If
This should wait until 5 seconds until the page is fully loaded (in javascript, document is ready). You should also search again the 'panel' container in case it is destroyed
About the fact that you don't know what will be shown in the next screen when you click on a link, there is a big problem: you should. Try talking to your application development team to find a way to solve that, as it will help you developing faster and more secure automation scripts. If you want to know more, in my blog I talk a little about this.
I hope it helped
Related Content
- 5 years ago
Recent Discussions
- 39 minutes ago
- 15 hours ago
- 7 days ago
- 10 days ago