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.7 by root, Tue Aug 28 23:19:41 2018 UTC vs.
Revision 1.8 by root, Tue Aug 28 23:23:22 2018 UTC

308 308
309Navigates to the specified URL. 309Navigates to the specified URL.
310 310
311=item $url = $wd->get_current_url 311=item $url = $wd->get_current_url
312 312
313Queries the czurrent page URL as set by C<navigate_to>. 313Queries the current page URL as set by C<navigate_to>.
314 314
315=cut 315=cut
316 316
317sub navigate_to_ { 317sub navigate_to_ {
318 $_[0]->post_ (url => { url => "$_[1]" }, $_[2]); 318 $_[0]->post_ (url => { url => "$_[1]" }, $_[2]);
402 $_[0]->get_ ("window/handles" => $_[1]); 402 $_[0]->get_ ("window/handles" => $_[1]);
403} 403}
404 404
405=item $handles = $wd->switch_to_frame ($frame) 405=item $handles = $wd->switch_to_frame ($frame)
406 406
407Switch to the given frame. 407Switch to the given frame identified by C<$frame>, which must be either
408C<undef> to go back to the top-level browsing context, an integer to
409select the nth subframe, or an element object (as e.g. returned by the
410C<element_object> method.
408 411
409=cut 412=cut
410 413
411sub switch_to_frame_ { 414sub switch_to_frame_ {
412 $_[0]->post_ (frame => { id => "$_[1]" }, $_[2]); 415 $_[0]->post_ (frame => { id => "$_[1]" }, $_[2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines