Hi, poj has the night off ;-)
You don't check to see whether your call to capture_screenshot succeeded. It returns true if so, and nothing if it fails.
$driver->capture_screenshot("$path/Website-$url.png") or warn "Didn't +get it!";
Since the call is not raising an exception, it's hard to guess what the problem might be: if the file could not be opened or written to, you would have encountered a fatal error, for example. If you turn on debugging you might see some issue with the driver itself, or maybe diagnostics from the Perl module ...
$driver->debug_on();
Like I say I cannot really think of a cause of your issue: I have used the command successfully myself many times, FWIW.
Hope this helps!
In reply to Re^5: Recover Excel data from cells with Foreach loop
by 1nickt
in thread Recover Excel data from cells with Foreach loop
by Perlchaoui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |