Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for HTML Elements
#1
Hi all,

How do I wait for an html element to load before performing an action?


int w1 = act( wait(15 WE win("Login - Windows Internet Explorer" "IEFrame")))
Htm e0= htm("SELECT" "menu3" "" w1 0 0 0x221)
e0.CbSelect(1)

I get an object not found on the 2nd line Htm e0= htm("SELECT" "menu3" "" w1 0 0 0x221)

Alternatively how can I loop a statement till it doesn't error out?

thanks
~k
#2
In Find Html Element dialog specify max wait time.
#3
Awesome thanks!

Does quick macro do try/catch?

It now finds the elements but the clicking seems to work half the time.
this way I can intervene and not have to run the macro all over again.

Thanks
#4
Instead of try/catch qm uses err. Look in QM help.


Forum Jump:


Users browsing this thread: 2 Guest(s)