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
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 );
|
|---|
| 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 | |
by Chaoui05 (Scribe) on Apr 29, 2016 at 13:52 UTC |