Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ExpressMainReview.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Block;
10 
14 class ExpressMainReview extends Block
15 {
21  protected $expressReview = '#memberReview';
22 
28  public function getReviewBlock()
29  {
30  if ($this->_rootElement->find($this->expressReview)->isVisible()) {
31  return $this->blockFactory->create(
32  \Magento\Paypal\Test\Block\Sandbox\ExpressReview::class,
33  ['element' => $this->_rootElement]
34  );
35  }
36  return $this->blockFactory->create(
37  \Magento\Paypal\Test\Block\Sandbox\ExpressOldReview::class,
38  ['element' => $this->_rootElement]
39  );
40  }
41 }