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
In reply to Re^4: Recover Excel data from cells with Foreach loop
by Perlchaoui
in thread Recover Excel data from cells with Foreach loop
by Perlchaoui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |