frame() public method

frame methods: /session/:sessionId/frame (POST) - $session->frame($json) - change focus to another frame on the page - $session->frame()->method() - chaining
public frame ( ) : Session | WebDriver\Frame
return Session | WebDriver\Frame
Example #1
0
 /**
  * Switches to specific iFrame.
  *
  * @param string $name iframe name (null for switching back)
  */
 public function switchToIFrame($name = null)
 {
     $this->wdSession->frame(array('id' => $name));
 }