WatiN wait for java script execution completed before click link (IE)

Posted by Sendoh on Stack Overflow See other posts from Stack Overflow or by Sendoh
Published on 2010-05-24T21:25:06Z Indexed on 2010/05/24 22:51 UTC
Read the original article Hit count: 541

Filed under:
|

i have this page displaying statement every 2 second (using javascript), at the end of it there is a link which the user can click.

with IE it will click the link before javascript generated statement is completed. when i use Link.Click()

(with Firefox it will throw exception, which is fine with me)

is there a way to wait for javascript execution to complete before link gets clicked (IE)?

TIA

EDITED // the code, pretty simple seaching for link that startwith //"Continue seaching" in the browser then click

if (ln.Text.StartsWith("Continue searching", StringComparison.CurrentCultureIgnoreCase)) { ln.Click(); }

Thx

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about watin