Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Landing.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Block;
10 use Magento\Mtf\Client\Locator;
11 
15 class Landing extends Block
16 {
22  protected $linkSelector = '//a[text()="%s"]';
23 
29  protected $agreeAndSetup = '.btn-prime.btn-submit';
30 
36  protected $termsAndAgreement = "[ng-click*='previous']";
37 
43  public function clickAgreeAndSetup()
44  {
45  $this->_rootElement->find($this->agreeAndSetup, Locator::SELECTOR_CSS)->click();
46  }
47 
53  public function clickTermsAndAgreement()
54  {
55  $this->_rootElement->find($this->termsAndAgreement, Locator::SELECTOR_CSS)->click();
56  }
57 
64  public function clickLink($text)
65  {
66  $this->_rootElement->find(sprintf($this->linkSelector, $text), Locator::SELECTOR_XPATH)->click();
67  }
68 }
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition: pager.phtml:43