Hi everybody,
I have a beginner question : How to add an object or a variable in an Array with Perl.
I'am using Selenium::Screenshot package
I have my Object here ..
my $white = Selenium::Screenshot->new(
png => $driver->screenshot,
exclude => [{
size => { width => 100, height => 100 }, # s
+ize => $elem->get_size,
location => { x => 5, y => 5 }, #location => $el
+em->get_element_location,
}]
);
$white->save( file => "snapScreenshot-$browser" );
That i would like to retrieve in this Array. But i'am not sure it's well done ..?
$screenshots{$browser} = new Selenium::Screenshot;
Thanks