Exemplo n.º 1
0
 /**
  * Proceeds to the confirmation page with login
  * @param string $eMail
  * @param string $password
  */
 public function proceedToOrderConfirmationWithLogin($eMail, $password)
 {
     if ($this->verifyPage()) {
         $locatorArray = $this->getNamedSelectors();
         $parent = Helper::getContentBlock($this);
         $language = Helper::getCurrentLanguage();
         $link = $parent->findLink($locatorArray['checkout'][$language]);
         if ($this->getDriver() instanceof Selenium2Driver) {
             $this->getSession()->visit($link->getAttribute('href'));
         } else {
             $link->click();
         }
     }
     $this->getPage('Account')->login($eMail, $password);
     $this->getPage('CheckoutConfirm')->verifyPage();
 }