in reply to Re^2: Screenshot with Perl
in thread Screenshot with Perl
With your support, i understood now from where is coming the issue.
Sometimes it's very useful to simply see what you're doing. A humble print statement can help:
Had you seen this output during debugging, it would probably have been immediately obvious that "... the png doc cannot store the url name as is".my $path = "C:/Users/user1/Documents/TESTPERL"; ... my $url = some_func(...); ... my $filename = "$path/Website-$url.png"; print "DEBUG: screenshot filename: '$filename'"; # FOR DEBUG only $driver->capture_screenshot($filename); ...
See also the Basic debugging checklist; these techniques will allow you to support yourself.
Give a man a fish: <%-{-{-{-<
|
|---|