boojeboy has asked for the wisdom of the Perl Monks concerning the following question:
getElementStatus("combo_item_1","combo_header\@class"); sub getElementStatus{ my ($element, $attribute_tested ) = @_; WAIT: { for (1..60) { if (eval {$sel->is_element_present_ok($element)}) { pass; last WAIT } sleep(1); } fail("timeout"); } my $status = $sel->get_attribute($attribute_tested); return $status; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Selenium.pm "testComplete"
by fenLisesi (Priest) on Jan 12, 2008 at 12:57 UTC | |
by boojeboy (Novice) on Jan 16, 2008 at 19:51 UTC |