Problem with Refresh Page

I have a grid with some default data loaded, user will apply some filter & click on refresh. The next action should wait till the refresh is completed & grid is loaded with fresh data (or no data). The page is locked ie hour glass is shown till the refresh. I tried using image exists, but not working.

I cannot put delay because amount of time taken to load the data is not fixed.

Any ideas or solutions ?

after refresh button clicked, just see if refresh button is in disabled mode.
If yes then you can use get attribute to see button is enabled or disabled.

Basically, you need to wait for elements to became enabled and for that use get attribute.

The button is not disabled, page lock mechanism is used by showing a pre-loader (hour glass). So enable/disable property cannot be checked. Imageexists also doesnt work. Any other options

When page is in disabled mode, there will be some tag which is extra or will not be there while page is loaded you can see that,

Hi skini76,

i too faced the same issue in one of my Automatons, i prepared this workaround:

  • while opening an URL with the help of ‘Open Browser’ activity, create a output variable too (Ex:- sun)
  • Then Activate the window with the help of ‘Activate’ activity
  • Attach to the browser by using ‘Attach Browser’ activity
  • In side the ‘Attach Browser’ activity, in ‘Do’ put ‘Refresh Browser’ activity and in the Input–>Browser, give the variable name which you created while opening the URL (EX:- sun)
  • Under the ‘Refresh Browser’ activity, place a ‘Do While’ activity, and inside body of ‘do while’ keep a ‘Element Exists’ and indicate the last/ deepest element of your website/ webpage and create a output variable (Ex:- ele), then write a condition in the condition of ‘do while’ write ‘output variable equals to false’ (Ex:- ele=False)
  • At last put a ‘Message Box’ for confirmation.
    =>Please refer the attachment<=
    Change the thing according to your requirement

Regards,
B N Suneel D.

Test2.xaml (22.0 KB)