Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
AuthenticationPopup Class Reference
Inheritance diagram for AuthenticationPopup:
AuthenticationWrapper

Public Member Functions

 isPasswordAutocompleteOff ()
 
 createAccount ()
 
 loginCustomer (Customer $customer)
 

Detailed Description

Authentication popup block.

Definition at line 14 of file AuthenticationPopup.php.

Member Function Documentation

◆ createAccount()

createAccount ( )

Click 'Create an Account' button.

Returns
void

Definition at line 59 of file AuthenticationPopup.php.

60  {
61  $this->_rootElement->find($this->createAccountButton)->click();
62  }

◆ isPasswordAutocompleteOff()

isPasswordAutocompleteOff ( )

Checks if password field autocomplete is off.

Returns
bool

Definition at line 49 of file AuthenticationPopup.php.

50  {
51  return $this->_rootElement->find($this->passwordFieldWithAutocompleteOff)->isVisible();
52  }

◆ loginCustomer()

loginCustomer ( Customer  $customer)

Login customer on authentication popup.

Parameters
Customer$customer
Returns
void

Definition at line 70 of file AuthenticationPopup.php.

71  {
72  sleep(10);
73  $this->fill($customer);
74  $this->_rootElement->find($this->login)->click();
75  $this->waitForElementNotVisible($this->loadingMask);
76  }
$customer
Definition: customers.php:11

The documentation for this class was generated from the following file: