in reply to Re^3: Recover Excel data from cells with Foreach loop
in thread Recover Excel data from cells with Foreach loop
Hmmm ; I understand better now. Thx. I need to work more with the foreach loop
Further to that i have a latest remark Poj. I would like to make a screenshot once an url is opened; As i am in a loop, i would like to store for each url a screnshot file. I did quickly as follows. I got no error but i got no screenshot :)
I used your code
sub process { my ($url) = @_; print "Processing $url\n"; # selenium code etc $driver->get($url); $driver->maximize_window(); $driver->pause(2000); #my $filename = "screenshot.png"; #$driver->capture_screenshot($filename); my $path = "C:/Users/user1/Documents/TESTPERL"; $driver->capture_screenshot("$path/Website-$url.png"); $driver->pause(2000); }
Many thanks Poj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Recover Excel data from cells with Foreach loop
by 1nickt (Canon) on Nov 10, 2018 at 23:37 UTC | |
by Perlchaoui (Sexton) on Nov 11, 2018 at 18:06 UTC | |
by choroba (Cardinal) on Nov 12, 2018 at 10:22 UTC | |
by hippo (Archbishop) on Nov 12, 2018 at 09:09 UTC |