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-base
dev
tests
functional
tests
app
Magento
Catalog
Test
Block
Adminhtml
Product
GridPageAction.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\Block\Adminhtml\Product
;
8
9
use
Magento\Backend\Test\Block\GridPageActions
as ParentGridPageActions;
10
use Magento\Mtf\Client\Locator;
11
15
class
GridPageAction
extends
ParentGridPageActions
16
{
22
protected
$toggleButton
=
'[data-ui-id=products-list-add-new-product-button-dropdown]'
;
23
29
protected
$productItem
=
'[data-ui-id=products-list-add-new-product-button-item-%productType%]'
;
30
36
protected
$typeList
=
'[data-ui-id=products-list-add-new-product-button-dropdown-menu]'
;
37
43
protected
$spinner
=
'[data-role="spinner"]'
;
44
51
public
function
addProduct
($productType =
'simple'
)
52
{
53
$this->waitForElementNotVisible($this->spinner);
54
$this->_rootElement->find($this->toggleButton, Locator::SELECTOR_CSS)->click();
55
$this->_rootElement->find(
56
str_replace(
'%productType%'
, $productType, $this->productItem),
57
Locator::SELECTOR_CSS
58
)->click();
59
}
60
66
public
function
getTypeList
()
67
{
68
$this->_rootElement->find($this->toggleButton, Locator::SELECTOR_CSS)->click();
69
return
$this->_rootElement->find(
70
$this->typeList,
71
Locator::SELECTOR_CSS
72
)->getText();
73
}
74
}
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction
Definition:
GridPageAction.php:15
Magento\Catalog\Test\Block\Adminhtml\Product
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction\$productItem
$productItem
Definition:
GridPageAction.php:29
Magento\Backend\Test\Block\GridPageActions
Definition:
GridPageActions.php:13
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction\addProduct
addProduct($productType='simple')
Definition:
GridPageAction.php:51
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction\getTypeList
getTypeList()
Definition:
GridPageAction.php:66
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction\$typeList
$typeList
Definition:
GridPageAction.php:36
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction\$toggleButton
$toggleButton
Definition:
GridPageAction.php:22
Magento\Catalog\Test\Block\Adminhtml\Product\GridPageAction\$spinner
$spinner
Definition:
GridPageAction.php:43