src/Codeception/Module/WPWebDriver.php
public function loginAsAdmin($timeout = 10, $maxAttempts = 5)
    {
        $this->loginAs($this->config['adminUsername'], $this->config['adminPassword'], $timeout, $maxAttempts);
    }
public function loginAsAdmin($timeout = 10, $maxAttempts = 5)
    {
        $this->loginAs($this->config['adminUsername'], $this->config['adminPassword'], $timeout, $maxAttempts);
    }
public function loginAsAdmin ( $ timeout = 10 , $ maxAttempts = 5 ) { $ this -> loginAs ( $ this -> config [ 'adminUsername' ] , $ this -> config [ 'adminPassword' ] , $ timeout , $ maxAttempts ) ; }
Login as the administrator user using the credentials specified in the module configuration.

The method will **not** follow redirection, after the login, to any page.

@example
```php
$I->loginAsAdmin();
$I->amOnAdminPage('/');
$I->see('Dashboard');
```

@param int    $timeout The max time, in seconds, to try to login.
@param int    $maxAttempts The max number of attempts to try to login.

@throws \Codeception\Exception\ModuleException If all the attempts of obtaining the cookie fail.
Login as the administrator user using the credentials specified in the module configuration .