src/php/DataSift/WebDriver/WebDriverClient.php
public function getSessions()
    {
        // our return value
        $sessions = array();

        // get a raw list of the current sessions
        $result = $this->curl('GET', '/sessions');

        // convert the raw list into an array of WebDriverSession objects
        foreach ($result['value'] as $session) {
            $sessions[] = new WebDriverSession($this->url . '/session/' . $session['id']);
        }

        // return the full list of sessions
        return $sessions;
    }
public function getSessions()
    {
        // our return value
        $sessions = array();

        // get a raw list of the current sessions
        $result = $this->curl('GET', '/sessions');

        // convert the raw list into an array of WebDriverSession objects
        foreach ($result['value'] as $session) {
            $sessions[] = new WebDriverSession($this->url . '/session/' . $session['id']);
        }

        // return the full list of sessions
        return $sessions;
    }
public function getSessions ( ) { // our return value $ sessions = array ( ) ; // get a raw list of the current sessions $ result = $ this -> curl ( 'GET' , '/sessions' ) ; // convert the raw list into an array of WebDriverSession objects foreach ( $ result [ 'value' ] as $ session ) { $ sessions [ ] = new WebDriverSession ( $ this -> url . '/session/' . $ session [ 'id' ] ) ; } // return the full list of sessions return $ sessions ; }
get a list of active sessions

@return array(WebDriverSession)
a list of the sessions that webdriver currently knows about
get a list of active sessions