… | |
… | |
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 | |
575 | Sets the window rect(angle). |
575 | Sets 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 | |
579 | sub get_window_rect_ { |
582 | sub get_window_rect_ { |
580 | $_[0]->get_ ("window/rect" => $_[1]); |
583 | $_[0]->get_ ("window/rect" => $_[1]); |
… | |
… | |
789 | |
792 | |
790 | Clear the contents of the given element. |
793 | Clear 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 | |
794 | Sends the given text as key events to the given element. |
797 | Sends the given text as key events to the given element. Key input state |
|
|
798 | can be cleared by embedding C<\x{e000}> in C<$text>. |
795 | |
799 | |
796 | =cut |
800 | =cut |
797 | |
801 | |
798 | sub element_click_ { |
802 | sub element_click_ { |
799 | $_[0]->post_ ("element/$_[1]{$WEB_ELEMENT_IDENTIFIER}/click" => undef, $_[2]); |
803 | $_[0]->post_ ("element/$_[1]{$WEB_ELEMENT_IDENTIFIER}/click" => undef, $_[2]); |