DataSift\Storyplayer\DeviceLib\RemoteWebDriverAdapter::start PHP Method

start() public method

public start ( StoryTeller $st ) : void
$st DataSift\Storyplayer\PlayerLib\StoryTeller
return void
    public function start(StoryTeller $st)
    {
        $httpProxy = new BrowserMobProxyClient();
        $httpProxy->enableFeature('enhancedReplies');
        $this->proxySession = $httpProxy->createProxy();
        // start recording
        $this->proxySession->startHAR();
        // create the browser session
        $webDriver = new WebDriverClient($this->browserDetails->url);
        $this->browserSession = $webDriver->newSession($this->browserDetails->browser, array('proxy' => $this->proxySession->getWebDriverProxyConfig()) + $this->browserDetails->desiredCapabilities);
    }
RemoteWebDriverAdapter