Chaoui05 has asked for the wisdom of the Perl Monks concerning the following question:
And i have following output in my Shell:$elem = $driver->find_element('/html/body/table/tbody/tr[1]/td[3]/di +v/div/div[1]'); my $s = Selenium::Screenshot->new( png => $driver->screenshot, #png => $d->screenshot, target => [{ size => { width => 65, height => 12 }, #=> $elem->get_size, location => { x => 35, y => 5 }, #=> $elem->get_element_loc +ation_in_view }] );
I don't understand why i have got this output. I did almost the same thing with "exclude" method and it worked. Thanks for any advice !Logout_test died (Not a HASH reference at C:/Strawberry/../Screenshot. +pm line 365, <DATA> line 821.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Target method with Selenium::Screenshot
by Corion (Patriarch) on May 31, 2016 at 08:55 UTC | |
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 | |
|
Re: Target method with Selenium::Screenshot
by Don Coyote (Hermit) on May 31, 2016 at 10:03 UTC | |
by Chaoui05 (Scribe) on May 31, 2016 at 12:41 UTC | |
by Don Coyote (Hermit) on Jun 07, 2016 at 07:12 UTC |