Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SignupCreate.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Form;
10 use Magento\Mtf\Client\Locator;
11 
15 class SignupCreate extends Form
16 {
22  protected $termsAgree = '#termsAgreeLabel span';
23 
29  protected $agreeAndCreateAccount = '#submitBtn';
30 
36  public function createAccount()
37  {
38  $this->_rootElement->find($this->termsAgree, Locator::SELECTOR_CSS, 'checkbox')->setValue('Yes');
39  $this->browser->selectWindow();
40  $this->_rootElement->find($this->agreeAndCreateAccount)->click();
41  }
42 }