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
Paypal
Test
Block
Sandbox
ExpressReview.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Paypal\Test\Block\Sandbox
;
8
9
use Magento\Mtf\Block\Block;
10
use Magento\Mtf\Client\Locator;
11
15
class
ExpressReview
extends
Block
16
{
22
protected
$continue
=
'#confirmButtonTop'
;
23
29
protected
$total
=
'#transactionCart .ng-binding'
;
30
37
protected
function
escapeCurrency
(
$price
)
38
{
39
return
preg_replace(
"/[^0-9\.,]/"
,
''
,
$price
);
40
}
41
47
public
function
getTotal
()
48
{
49
$this->waitForElementVisible($this->total);
50
$total
= $this->_rootElement->find($this->total, Locator::SELECTOR_CSS)->getText();
51
return
$this->
escapeCurrency
(
$total
);
52
}
53
59
public
function
reviewAndContinue
()
60
{
61
$this->waitForElementVisible($this->
continue
);
62
$this->_rootElement->find($this->
continue
)->click();
63
}
64
}
$price
$price
Definition:
product_alert.php:10
Magento\Paypal\Test\Block\Sandbox\ExpressReview\getTotal
getTotal()
Definition:
ExpressReview.php:47
Magento\Paypal\Test\Block\Sandbox\ExpressReview\$continue
$continue
Definition:
ExpressReview.php:22
Magento\Paypal\Test\Block\Sandbox
Definition:
ExpressLogin.php:7
Magento\Paypal\Test\Block\Sandbox\ExpressReview\$total
$total
Definition:
ExpressReview.php:29
Magento\Paypal\Test\Block\Sandbox\ExpressReview
Definition:
ExpressReview.php:15
Magento\Paypal\Test\Block\Sandbox\ExpressReview\escapeCurrency
escapeCurrency($price)
Definition:
ExpressReview.php:37
Magento\Paypal\Test\Block\Sandbox\ExpressReview\reviewAndContinue
reviewAndContinue()
Definition:
ExpressReview.php:59