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

The method will **not** handle authentication, nonces or authorization.

@example
```php
$I->amOnAdminAjaxPage(['action' => 'my-action', 'data' => ['id' => 23], 'nonce' => $nonce]);
```

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