in reply to Target method with Selenium::Screenshot
Your code does not match the documentation. The target option does not take an array reference but a hash reference.
Instead of
target => [{ size => { width => 65, height => 12 }, #=> $elem->get_size, location => { x => 35, y => 5 }, #=> $elem->get_element_loc +ation_in_view }]
pass a hash reference:
target => { size => { width => 65, height => 12 }, #=> $elem->get_size, location => { x => 35, y => 5 }, #=> $elem->get_element_loc +ation_in_view }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Target method with Selenium::Screenshot
by Chaoui05 (Scribe) on May 31, 2016 at 09:16 UTC | |
by Corion (Patriarch) on May 31, 2016 at 09:17 UTC | |
by Chaoui05 (Scribe) on May 31, 2016 at 09:26 UTC |