Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-functional-testing-framework
src
Magento
FunctionalTestingFramework
Extension
ReadinessMetrics
JQueryAjaxRequests.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics
;
8
9
use Facebook\WebDriver\Exception\UnexpectedAlertOpenException;
10
16
class
JQueryAjaxRequests
extends
AbstractMetricCheck
17
{
24
protected
function
doesMetricPass
(
$value
)
25
{
26
return
$value
== 0;
27
}
28
35
protected
function
fetchValueFromPage
()
36
{
37
return
intval(
38
$this->executeJS(
39
'if (!!window.jQuery) {
40
return window.jQuery.active;
41
}
42
return 0;'
43
)
44
);
45
}
46
54
protected
function
clearFailureOnPage
()
55
{
56
$this->executeJS(
'if (!!window.jQuery) { window.jQuery.active = 0; };'
);
57
}
58
}
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics\JQueryAjaxRequests\clearFailureOnPage
clearFailureOnPage()
Definition:
JQueryAjaxRequests.php:54
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics\AbstractMetricCheck
Definition:
AbstractMetricCheck.php:21
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics
Definition:
AbstractMetricCheck.php:7
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics\JQueryAjaxRequests
Definition:
JQueryAjaxRequests.php:16
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics\JQueryAjaxRequests\doesMetricPass
doesMetricPass($value)
Definition:
JQueryAjaxRequests.php:24
$value
$value
Definition:
gender.phtml:16
Magento\FunctionalTestingFramework\Extension\ReadinessMetrics\JQueryAjaxRequests\fetchValueFromPage
fetchValueFromPage()
Definition:
JQueryAjaxRequests.php:35