in reply to Re: Selenium Screenshot
in thread Selenium Screenshot
But there is no example added to describe how to use it. I tried code below but it doesn't work:$elem = $driver->find_element('app-lgs','id' ); Selenium::Screenshot->new( png => $driver->screenshot, exclude => [{ size => $elem->get_size, location => $elem->get_element_location, }] )->save( file => "screen.png" );
Have you got an example to purpose me ? Thanks again !Selenium::Screenshot->new( png => $driver->screenshot, exclude => [{ size => { width => 10, height => 10 } location => { x => 5, y => 5 }, }]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Selenium Screenshot
by Corion (Patriarch) on May 24, 2016 at 13:18 UTC | |
by Chaoui05 (Scribe) on May 24, 2016 at 13:41 UTC |