Class PrototypeAjaxRequests
Looks for all active prototype ajax requests to finish before passing the readiness check
Definition at line 16 of file PrototypeAjaxRequests.php.
◆ clearFailureOnPage()
Active request count can get stuck above zero if an exception is thrown during a callback, causing the ajax handler method to fail before decrementing the request count
- Returns
- void
- Exceptions
-
UnexpectedAlertOpenException | |
Definition at line 54 of file PrototypeAjaxRequests.php.
56 $this->executeJS(
'if (!!window.Prototype) { window.Ajax.activeRequestCount = 0; };');
◆ doesMetricPass()
Metric passes once there are no remaining active requests
- Parameters
-
- Returns
- boolean
Definition at line 24 of file PrototypeAjaxRequests.php.
◆ fetchValueFromPage()
Grabs the number of active prototype ajax requests if available
- Returns
- integer
- Exceptions
-
UnexpectedAlertOpenException | |
Definition at line 35 of file PrototypeAjaxRequests.php.
39 'if (!!window.Prototype) { 40 return window.Ajax.activeRequestCount;
The documentation for this class was generated from the following file:
- vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Extension/ReadinessMetrics/PrototypeAjaxRequests.php