function doSiteLogout() { $cfg = new SeleniumConfig(); $d = $this->driver; $url = $this->cfg->host . $this->cfg->path . 'index.php/login'; $this->driver->get($url); $loginPage = $this->getPageObject('SiteLoginPage'); $loginPage->SiteLogoutUser(); $loginPage = $this->getPageObject('SiteLoginPage', true, $url); $urlHome = $this->cfg->host . $this->cfg->path . 'index.php'; $this->driver->get($urlHome); $homePage = $this->getPageObject('SiteContentFeaturedPage', true, $urlHome); }