Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Using WWW::Selenium To Test Or Automate An Ajax Website

by Anonymous Monk
on Jul 24, 2009 at 14:50 UTC ( #783003=note: print w/ replies, xml ) Need Help??


in reply to Re: Using WWW::Selenium To Test Or Automate An Ajax Website
in thread Using WWW::Selenium To Test Or Automate An Ajax Website

I'm having trouble verifying data in an Unordered List. I've tried using the Xpath as well as the Ids, but Selenium does not find them. Any advice would be very much appreciated. Thanks!


Comment on Re^2: Using WWW::Selenium To Test Or Automate An Ajax Website
Re^3: Using WWW::Selenium To Test Or Automate An Ajax Website
by Limbic~Region (Chancellor) on Jul 24, 2009 at 15:06 UTC
    Anonymous Monk,
    That question wasn't very specific so my response will be somewhat generic.

    First, did you use the IDE to record a session that selects the item from the unordered list? If so, does replaying yield the same results? If not - you should start there.

    Second, you say "... trouble verifying data in.." which leads me to believe you are not using the select() method but perhaps the get_select_options() method. It is hard to trouble shoot without knowing which method you are using and how are you using it (example)?

    Third, If there is truly some reason WWW::Selenium doesn't have a method you need, you have a number of options. You could use one of the myriad of HTML parsing modules on CPAN and parse it yourself. You could subclass it and fix which ever method is broken.

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://783003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-11-23 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (134 votes), past polls