ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-WebDriver/WebDriver.pm
(Generate patch)

Comparing AnyEvent-WebDriver/WebDriver.pm (file contents):
Revision 1.33 by root, Mon Sep 3 20:44:42 2018 UTC vs.
Revision 1.34 by root, Mon Sep 3 20:48:06 2018 UTC

570 $rect = $wd->get_window_rect 570 $rect = $wd->get_window_rect
571 => { height => 1040, width => 540, x => 0, y => 0 } 571 => { height => 1040, width => 540, x => 0, y => 0 }
572 572
573=item $wd->set_window_rect ($rect) 573=item $wd->set_window_rect ($rect)
574 574
575Sets the window rect(angle). 575Sets the window rect(angle), e.g.:
576
577 $wd->set_window_rect ({ width => 780, height => 560 });
578 $wd->set_window_rect ({ x => 0, y => 0, width => 780, height => 560 });
576 579
577=cut 580=cut
578 581
579sub get_window_rect_ { 582sub get_window_rect_ {
580 $_[0]->get_ ("window/rect" => $_[1]); 583 $_[0]->get_ ("window/rect" => $_[1]);
789 792
790Clear the contents of the given element. 793Clear the contents of the given element.
791 794
792=item $wd->element_send_keys ($element, $text) 795=item $wd->element_send_keys ($element, $text)
793 796
794Sends the given text as key events to the given element. 797Sends the given text as key events to the given element. Key input state
798can be cleared by embedding C<\x{e000}> in C<$text>.
795 799
796=cut 800=cut
797 801
798sub element_click_ { 802sub element_click_ {
799 $_[0]->post_ ("element/$_[1]{$WEB_ELEMENT_IDENTIFIER}/click" => undef, $_[2]); 803 $_[0]->post_ ("element/$_[1]{$WEB_ELEMENT_IDENTIFIER}/click" => undef, $_[2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines