in reply to Re^4: Recover Excel data from cells with Foreach loop
in thread Recover Excel data from cells with Foreach loop
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Recover Excel data from cells with Foreach loop
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 |