Footer block CmsIndex page Footer block
Definition at line 17 of file Footer.php.
◆ checkVariable()
checkVariable |
( |
|
$htmlValue | ) |
|
Check Variable visibility by html value.
- Parameters
-
- Returns
- bool
Definition at line 94 of file Footer.php.
96 return $this->_rootElement->find(
97 sprintf($this->variableSelector, $htmlValue),
98 Locator::SELECTOR_XPATH
◆ clickLink()
Click on link by its title.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 68 of file Footer.php.
70 $link = $this->_rootElement->find(sprintf($this->linkSelector, $linkName), Locator::SELECTOR_XPATH);
71 if (!
$link->isVisible()) {
72 throw new \Exception(sprintf(
'"%s" link is not visible', $linkName));
◆ isLinkVisible()
isLinkVisible |
( |
|
$linkName | ) |
|
Check is link is visible.
- Parameters
-
- Returns
- bool
Definition at line 83 of file Footer.php.
85 return $this->_rootElement->find(sprintf($this->linkSelector, $linkName), Locator::SELECTOR_XPATH)->isVisible();
◆ isStoreGroupSwitcherVisible()
isStoreGroupSwitcherVisible |
( |
| ) |
|
Check if "Store" switcher is visible or not.
- Returns
- bool
Definition at line 143 of file Footer.php.
145 return $this->_rootElement->find($this->storeGroupSwitch)->isVisible();
◆ isStoreGroupVisible()
isStoreGroupVisible |
( |
Store |
$store | ) |
|
Check if correspondent "Store" is present in "Store" switcher or not.
- Parameters
-
- Returns
- bool
Definition at line 128 of file Footer.php.
130 $storeGroupName = explode(
"/",
$store->getGroupId())[1];
131 $this->_rootElement->find($this->storeGroupSwitch)->click();
132 return $this->_rootElement->find(
133 sprintf($this->storeGroupSelector, $storeGroupName),
134 Locator::SELECTOR_XPATH
◆ openAdvancedSearch()
Open Advanced Search.
- Returns
- void
Definition at line 153 of file Footer.php.
155 $this->_rootElement->find($this->advancedSearchSelector)->click();
◆ selectStoreGroup()
selectStoreGroup |
( |
Store |
$store | ) |
|
Select Store group.
- Parameters
-
- Returns
- void
Definition at line 108 of file Footer.php.
110 $storeGroupName = explode(
"/",
$store->getGroupId())[1];
112 sprintf($this->storeGroupSelector, $storeGroupName),
113 Locator::SELECTOR_XPATH
116 $this->_rootElement->find($this->storeGroupSwitch)->click();
◆ $advancedSearchSelector
$advancedSearchSelector = '[data-action="advanced-search"]' |
|
protected |
◆ $linkSelector
$linkSelector = '//*[contains(@class, "links")]//a[contains(text(), "%s")]' |
|
protected |
◆ $storeGroupDropdown
$storeGroupDropdown = '.switcher.store' |
|
protected |
◆ $storeGroupSelector
$storeGroupSelector = './/a[contains(.,"%s")]' |
|
protected |
◆ $storeGroupSwitch
$storeGroupSwitch = '[data-toggle="dropdown"]' |
|
protected |
◆ $variableSelector
$variableSelector = './/ul[contains(@class, "links")]/*[text()="%s"]' |
|
protected |
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/functional/tests/app/Magento/Theme/Test/Block/Html/Footer.php