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
Page
Objects
SectionObject.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\FunctionalTestingFramework\Page\Objects
;
8
12
class
SectionObject
13
{
19
private
$name;
20
26
private
$elements = [];
27
33
public
function
__construct
($name, $elements)
34
{
35
$this->
name
= $name;
36
$this->elements = $elements;
37
}
38
44
public
function
getName
()
45
{
46
return
$this->name;
47
}
48
54
public
function
getElements
()
55
{
56
return
$this->elements;
57
}
58
64
public
function
hasElement
(
$elementName
)
65
{
66
return
array_key_exists(
$elementName
, $this->elements);
67
}
68
75
public
function
getElement
(
$elementName
)
76
{
77
if
($this->
hasElement
(
$elementName
)) {
78
return
$this->elements[
$elementName
];
79
}
80
81
return
null
;
82
}
83
}
Magento\FunctionalTestingFramework\Page\Objects\SectionObject\getElement
getElement($elementName)
Definition:
SectionObject.php:75
Magento\FunctionalTestingFramework\Page\Objects\SectionObject\getElements
getElements()
Definition:
SectionObject.php:54
Magento\FunctionalTestingFramework\Page\Objects\SectionObject\hasElement
hasElement($elementName)
Definition:
SectionObject.php:64
Magento\FunctionalTestingFramework\Page\Objects\SectionObject\__construct
__construct($name, $elements)
Definition:
SectionObject.php:33
name
Magento\FunctionalTestingFramework\Page\Objects\SectionObject\getName
getName()
Definition:
SectionObject.php:44
Magento\FunctionalTestingFramework\Page\Objects\SectionObject
Definition:
SectionObject.php:12
Magento\FunctionalTestingFramework\Page\Objects
Definition:
ElementObject.php:6
$elementName
$elementName
Definition:
gallery.phtml:10