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
PageObject.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\FunctionalTestingFramework\Page\Objects
;
8
9
use
Magento\FunctionalTestingFramework\Exceptions\XmlException
;
10
use
Magento\FunctionalTestingFramework\Page\Handlers\SectionObjectHandler
;
11
15
class
PageObject
16
{
17
const
ADMIN_AREA
=
'admin'
;
18
24
private
$name;
25
31
private
$url;
32
38
private
$module;
39
45
private
$parameterized;
46
52
private
$sectionNames = [];
53
59
private
$area;
60
70
public
function
__construct
($name, $url, $module, $sections, $parameterized, $area)
71
{
72
$this->
name
= $name;
73
$this->url = $url;
74
$this->module = $module;
75
$this->sectionNames = $sections;
76
$this->parameterized = $parameterized;
77
$this->area = $area;
78
}
79
85
public
function
getName
()
86
{
87
return
$this->name;
88
}
89
95
public
function
getUrl
()
96
{
97
return
$this->url;
98
}
99
105
public
function
getModule
()
106
{
107
return
$this->module;
108
}
109
115
public
function
getArea
()
116
{
117
return
$this->area;
118
}
119
125
public
function
getSectionNames
()
126
{
127
return
$this->sectionNames;
128
}
129
136
public
function
hasSection
($sectionName)
137
{
138
return
in_array($sectionName, $this->sectionNames);
139
}
140
148
public
function
getSection
($sectionName)
149
{
150
if
($this->
hasSection
($sectionName)) {
151
return
SectionObjectHandler::getInstance
()->getObject($sectionName);
152
}
153
154
return
null
;
155
}
156
162
public
function
isParameterized
()
163
{
164
return
$this->parameterized;
165
}
166
}
Magento\FunctionalTestingFramework\Page\Objects\PageObject\getSectionNames
getSectionNames()
Definition:
PageObject.php:125
Magento\FunctionalTestingFramework\Page\Objects\PageObject\getSection
getSection($sectionName)
Definition:
PageObject.php:148
Magento\FunctionalTestingFramework\Page\Objects\PageObject
Definition:
PageObject.php:15
name
Magento\FunctionalTestingFramework\Page\Objects\PageObject\hasSection
hasSection($sectionName)
Definition:
PageObject.php:136
Magento\FunctionalTestingFramework\Exceptions\XmlException
Definition:
XmlException.php:14
Magento\FunctionalTestingFramework\Page\Objects\PageObject\isParameterized
isParameterized()
Definition:
PageObject.php:162
Magento\FunctionalTestingFramework\Page\Objects\PageObject\getUrl
getUrl()
Definition:
PageObject.php:95
Magento\FunctionalTestingFramework\Page\Objects\PageObject\__construct
__construct($name, $url, $module, $sections, $parameterized, $area)
Definition:
PageObject.php:70
Magento\FunctionalTestingFramework\Page\Objects\PageObject\ADMIN_AREA
const ADMIN_AREA
Definition:
PageObject.php:17
Magento\FunctionalTestingFramework\Page\Objects\PageObject\getModule
getModule()
Definition:
PageObject.php:105
Magento\FunctionalTestingFramework\Page\Objects\PageObject\getName
getName()
Definition:
PageObject.php:85
Magento\FunctionalTestingFramework\Page\Objects
Definition:
ElementObject.php:6
Magento\FunctionalTestingFramework\Page\Handlers\SectionObjectHandler
Definition:
SectionObjectHandler.php:16
Magento\FunctionalTestingFramework\Page\Objects\PageObject\getArea
getArea()
Definition:
PageObject.php:115
Magento\FunctionalTestingFramework\Page\Handlers\SectionObjectHandler\getInstance
static getInstance()
Definition:
SectionObjectHandler.php:99