lib/Remote/RemoteWebDriver.php
public static function getAllSessions($selenium_server_url = 'http://localhost:4444/wd/hub', $timeout_in_ms = 30000)
    {
        $executor = new HttpCommandExecutor($selenium_server_url);
        $executor->setConnectionTimeout($timeout_in_ms);

        $command = new WebDriverCommand(
            null,
            DriverCommand::GET_ALL_SESSIONS,
            []
        );

        return $executor->execute($command)->getValue();
    }
public static function getAllSessions($selenium_server_url = 'http://localhost:4444/wd/hub', $timeout_in_ms = 30000)
    {
        $executor = new HttpCommandExecutor($selenium_server_url);
        $executor->setConnectionTimeout($timeout_in_ms);

        $command = new WebDriverCommand(
            null,
            DriverCommand::GET_ALL_SESSIONS,
            []
        );

        return $executor->execute($command)->getValue();
    }
public static function getAllSessions ( $ selenium_server_url = 'http://localhost:4444/wd/hub' , $ timeout_in_ms = 30000 ) { $ executor = new HttpCommandExecutor ( $ selenium_server_url ) ; $ executor -> setConnectionTimeout ( $ timeout_in_ms ) ; $ command = new WebDriverCommand ( null , DriverCommand :: GET_ALL_SESSIONS , [ ] ) ; return $ executor -> execute ( $ command ) -> getValue ( ) ; }
Returns a list of the currently active sessions.

@param string $selenium_server_url The url of the remote Selenium WebDriver server
@param int $timeout_in_ms
@return array
Returns a list of the currently active sessions .