Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
JQueryAjaxRequests.php
Go to the documentation of this file.
1 <?php
8 
9 use Facebook\WebDriver\Exception\UnexpectedAlertOpenException;
10 
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 }
$value
Definition: gender.phtml:16