Spining > Angular
Our web portal, has some pages when the user clicks on certain buttons the spinner image keeps loading and the next page is not loaded.
I tried the options
1) sync option.
3) While Browser("title:=.*").Page("title:=.*").Image("Load ing").GetROProperty("visible")
But none of these seem to be working. ANY advise...
You seem to be describing an application bug if a user clicks and it just spins without performing the expected action of opening the next page.
Or is it that it works manually but the page never loads if done with a qtp click command? If that, look into changing the replay type to emulate mouse/keyboard operations.
When to change QTP Web ReplayType Setting? | KnowledgeInbox
Its not a bug, but when the user clicks a button the page is blank with a spinner and the time taken to load the next page in the flow is little varying. As I am using a hybrid framework, QTP is quick in passing to the next line of code... instead of the waiting for the application to load the next page..or objects in in the same page...etc...
I would just put an exist timeout statement on the next page as well as the next element you are working with on that page if it truly is navigating to a new page after the load. That's generally a better approach, put the sync at the front of the next object rather than checking on the one you just did.
Last edited by NoUse4aName; 03-17-2015 at 11:33 AM.
Check for the existence of the image in a loop and have a wait inside it. Declare these statement in a function and call whenever u wants instead of sync.
Well there's no need for a loop with exist, just provide the exist with a timeout value and it will behave the same way.