Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Selenium.pm "testComplete"

by boojeboy (Novice)
on Jan 11, 2008 at 21:01 UTC ( [id://661986]=perlquestion: print w/replies, xml ) Need Help??

boojeboy has asked for the wisdom of the Perl Monks concerning the following question:

'testComplete' command evaluates function which has no string value
firefox , osx , mac Reply
mac osx, firefox error
I'm passing string
to the get_attribute,is_element_present_ok functions
but when the test is complete, the functions are evaluated but have no string passed so I get the '500 Can't call method "FETCH" on an undefined value' error.
This is not the "firefox-bin" issue as the scripts run fine if each function has an explicit string value.
Are we only supposed to call functions with an explicit string value?
sample code:
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
    boojeboy,

    Your post is difficult to read. That will place an unnecessary hurdle in front of monks who will be trying to help you. Please study Writeup Formatting Tips. In particular, avoiding <br /> tags and making use of <code>...</code> tags should make an immediate impact.

    There are users of Selenium IDE here, so you should be getting help soon. In the meantime, it would be great if you updated your node with better formatting. Cheers.

      At the end of the script:
      # Garbage collection, destroy the created object $sel->DESTROY;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://661986]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2024-04-23 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found