Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LoginWithCaptcha.php
Go to the documentation of this file.
1 <?php
8 
10 use Magento\Mtf\Client\Locator;
11 
15 class LoginWithCaptcha extends Login
16 {
22  private $captchaImage = '.captcha-img';
23 
29  private $captchaReload = '.captcha-reload';
30 
36  public function isVisibleCaptcha()
37  {
38  return $this->_rootElement->find($this->captchaImage, Locator::SELECTOR_CSS)->isVisible();
39  }
40 
46  public function isVisibleCaptchaReloadButton()
47  {
48  return $this->_rootElement->find($this->captchaReload, Locator::SELECTOR_CSS)->isVisible();
49  }
50 
56  public function reloadCaptcha()
57  {
58  $this->_rootElement->find($this->captchaReload, Locator::SELECTOR_CSS)->click();
59  }
60 }