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

The documentation of Selenium::Remote::Driver has the subroutine upload_file, even together with a code example. What happened when you tried that code example?

  • Comment on Re: How to upload a file in a test through Open Windows using Selenium::Remote::Driver Perl package

Replies are listed 'Best First'.
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
    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 );

      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