src/Codeception/Module/WPBrowserMethods.php
public function amOnCronPage($queryVars = null)
    {
        $path = '/wp-cron.php';
        if ($queryVars !== null) {
            $path = '/' . (is_array($queryVars) ? build_query($queryVars) : ltrim($queryVars, '/'));
        }
        return $this->amOnPage($path);
    }
public function amOnCronPage($queryVars = null)
    {
        $path = '/wp-cron.php';
        if ($queryVars !== null) {
            $path = '/' . (is_array($queryVars) ? build_query($queryVars) : ltrim($queryVars, '/'));
        }
        return $this->amOnPage($path);
    }
public function amOnCronPage ( $ queryVars = null ) { $ path = '/wp-cron.php' ; if ( $ queryVars !== null ) { $ path = '/' . ( is_array ( $ queryVars ) ? build_query ( $ queryVars ) : ltrim ( $ queryVars , '/' ) ) ; } return $ this -> amOnPage ( $ path ) ; }
Go to the cron page to start a synchronous, and blocking, `GET` request to the cron script.

@example
```php
// Triggers the cron job with an optional query argument.
$I->amOnCronPage('/?some-query-var=some-value');
```

@param array|string $queryVars A string or array of query variables to append to the AJAX path.
Go to the cron page to start a synchronous and blocking GET request to the cron script .