WebDriver/WebDriver/Object/Frame.php
public function focus($frameId=null)
    {
        if ($frameId instanceof WebDriver_Element) {
            $frameId = $frameId->getReference();
        }
        $params = [
            'id' => $frameId
        ];
        $command = $this->driver->factoryCommand(
            'frame',
            WebDriver_Command::METHOD_POST,
            $params
        );
        return $this->driver->curl($command)['value'];
    }
public function focus($frameId=null)
    {
        if ($frameId instanceof WebDriver_Element) {
            $frameId = $frameId->getReference();
        }
        $params = [
            'id' => $frameId
        ];
        $command = $this->driver->factoryCommand(
            'frame',
            WebDriver_Command::METHOD_POST,
            $params
        );
        return $this->driver->curl($command)['value'];
    }
public function focus ( $ frameId = null ) { if ( $ frameId instanceof WebDriver_Element ) { $ frameId = $ frameId -> getReference ( ) ; } $ params = [ 'id' => $ frameId ] ; $ command = $ this -> driver -> factoryCommand ( 'frame' , WebDriver_Command :: METHOD_POST , $ params ) ; return $ this -> driver -> curl ( $ command ) [ 'value' ] ; }
Change focus to another frame on the page.
If the frame id is null, the server should switch to the page's default content.
Change focus to another frame on the page . If the frame id is null the server should switch to the page s default content .