PHP Class Codeception\Module\WPWebDriver

Inheritance: extends Codeception\Module\WebDriver, use trait WPBrowserMethods
Show file Open project: lucatume/wp-browser

Protected Properties

Property Type Description
$adminPath string The admin absolute URL.
$loginUrl string The login screen absolute URL
$pluginsPath string The plugin screen absolute URL
$requiredFields array The module required fields, to be set in the suite .yml configuration file.

Public Methods

Method Description
_initialize ( ) : void Initializes the module setting the properties values.
grabCookiesWithPattern ( string $cookiePattern ) : array | null Returns all the cookies whose name matches a regex pattern.
grabFullUrl ( ) Grabs the current page full URL including the query vars.
waitForJqueryAjax ( integer $time = 10 ) Waits for any jQuery triggered AJAX request to be resolved.

Protected Methods

Method Description
configBackCompat ( )
validateConfig ( )

Method Details

_initialize() public method

Initializes the module setting the properties values.
public _initialize ( ) : void
return void

configBackCompat() protected method

protected configBackCompat ( )

grabCookiesWithPattern() public method

Returns all the cookies whose name matches a regex pattern.
public grabCookiesWithPattern ( string $cookiePattern ) : array | null
$cookiePattern string
return array | null

grabFullUrl() public method

Grabs the current page full URL including the query vars.
public grabFullUrl ( )

validateConfig() protected method

protected validateConfig ( )

waitForJqueryAjax() public method

Waits for any jQuery triggered AJAX request to be resolved.
public waitForJqueryAjax ( integer $time = 10 )
$time integer

Property Details

$adminPath protected property

The admin absolute URL.
protected string $adminPath
return string

$loginUrl protected property

The login screen absolute URL
protected string $loginUrl
return string

$pluginsPath protected property

The plugin screen absolute URL
protected string $pluginsPath
return string

$requiredFields protected property

The module required fields, to be set in the suite .yml configuration file.
protected array $requiredFields
return array