BourneID has asked for the wisdom of the Perl Monks concerning the following question:
So, how can use these wait for commnads in one line in perl?WAIT: { for (1..60) { if (eval { $sel->is_element_present("xpath=\"XXXXX\"") }) { pass; last WAIT } sleep(1); } fail("timeout"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Selenium waitForXXXX in Perl
by Corion (Patriarch) on Sep 06, 2010 at 07:26 UTC | |
|
Re: Selenium waitForXXXX in Perl
by ikegami (Patriarch) on Sep 06, 2010 at 07:27 UTC | |
|
Re: Selenium waitForXXXX in Perl
by suhailck (Friar) on Sep 06, 2010 at 07:46 UTC |