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