Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to upload a file in a test through Open Windows using Selenium::Remote::Driver Perl package

by Chaoui05 (Scribe)
on Apr 29, 2016 at 13:41 UTC ( [id://1161875]=note: print w/replies, xml ) Need Help??


in reply to Re: How to upload a file in a test through Open Windows using Selenium::Remote::Driver Perl package
in thread How to upload a file in a test through Open Windows using Selenium::Remote::Driver Perl package

Yes i did it. As you can see here but it doesn't work
my $fname = "D:/dev/t/tests/selenium/phantomjs-2.1.1-windows.zip"; my $remote_fname = $driver->upload_file( $fname ); my $element = $driver->find_element( '//*[@id="file_uploader"]/div +/div/div/div[1]/div[1]/div/span' ); $element->send_keys( $remote_fname );
  • Comment on Re^2: How to upload a file in a test through Open Windows using Selenium::Remote::Driver Perl package
  • Download Code

Replies are listed 'Best First'.
Re^3: How to upload a file in a test through Open Windows using Selenium::Remote::Driver Perl package
by Corion (Patriarch) on Apr 29, 2016 at 13:50 UTC

    You can improve the interaction here by telling us what you tried, and how it fails to do what you expect. We cannot guess what errors you are seeing or how a specific program that you don't show us fails with a specific website that you don't show us, with an error message that you keep secret.

      OK i understand . I will give you more informations , sorry

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found