Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Compare method with Selenium

by ablanke (Monsignor)
on May 25, 2016 at 08:16 UTC ( [id://1164049]=note: print w/replies, xml ) Need Help??


in reply to Compare method with Selenium

Hello Chaoui05,

I assume the return value of the save Method is stored in your Scalars $white and $blue

Try this:
my $white = Selenium::Screenshot->new( png => $driver->screenshot, exclude => [{ size => { width => 10, height => 10 }, location => { x => 5, y => 5 }, }] ); $white->save( file => "snapScreenshot" );

Replies are listed 'Best First'.
Re^2: Compare method with Selenium
by Chaoui05 (Scribe) on May 25, 2016 at 08:31 UTC
    Hello ablanke

    Thanks. I did that and it's perfect. But now i have another issue. I can't get a black out on my page doing that :

    $elem = $driver->find_element('applgs','id' ); my $white = Selenium::Screenshot->new( png => $driver->screenshot, exclude => [{ size => { width => 10, height => 10 }, # siz +e => $elem->get_size, location => { x => 5, y => 5 }, #location => $el +em->get_element_location, }] );
    Thanks again !

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1164049]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-26 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found