Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Using xpath value in selenium web driver in perl

by Shaveta_Chawla (Sexton)
on May 14, 2013 at 07:36 UTC ( #1033433=note: print w/replies, xml ) Need Help??


in reply to Re: Using xpath value in selenium web driver in perl
in thread Using xpath value in selenium web driver in perl

The complete code is as follows:
use Selenium::Remote::Driver; my $driver = new Selenium::Remote::Driver(); $driver->get('some url'); $driver->find_element("//input[\@name='login']")->send_keys('username' +); $driver->find_element("//input[\@name='password']")->send_keys('passwo +rd'); my $elem = $driver->find_element("//input[\@id='GoAheadAndLogIn']"); $driver->mouse_move_to_location(element => $elem, xoffset => 0, yoffse +t => 0); $driver->click;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033433]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2017-02-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.