/** * Fills the notification form and submits it * @param string $email */ public function submitNotification($email) { $data = [['field' => 'sNotificationEmail', 'value' => $email]]; Helper::fillForm($this, 'notificationForm', $data); $elements = Helper::findElements($this, ['notificationSubmit']); $elements['notificationSubmit']->press(); }
/** * @param array $data */ public function subscribeNewsletter(array $data) { Helper::fillForm($this, 'newsletterForm', $data); $locators = array('newsletterFormSubmit'); $elements = Helper::findElements($this, $locators); $elements['newsletterFormSubmit']->press(); }
/** * @param array $data */ public function unsubscribeNewsletter(array $data) { $mode = array(array('field' => 'subscribeToNewsletter', 'value' => -1)); $data = array_merge($data, $mode); Helper::fillForm($this, 'newsletterForm', $data); Helper::pressNamedButton($this, 'newsletterFormSubmit'); }
/** * Changes the shipping method * @param array $data */ public function changeShippingMethod(array $data = []) { $element = $this->getElement('CheckoutPayment'); Helper::clickNamedLink($element, 'changeButton'); Helper::fillForm($this, 'shippingPaymentForm', $data); Helper::pressNamedButton($this, 'changePaymentButton'); }
/** * Fills the notification form and submits it * @param string $email */ public function submitNotification($email) { $data = array(array('field' => 'sNotificationEmail', 'value' => $email)); Helper::fillForm($this, 'notificationForm', $data); $locators = array('notificationSubmit'); $elements = Helper::findElements($this, $locators); $elements['notificationSubmit']->press(); }
/** * Changes the shipping method * @param array $data */ public function changeShippingMethod($data = array()) { $element = $this->getElement('CheckoutPayment'); $language = Helper::getCurrentLanguage($this); Helper::clickNamedLink($element, 'changeButton', $language); Helper::fillForm($this, 'shippingPaymentForm', $data); Helper::pressNamedButton($this, 'changePaymentButton'); }
/** * Fills out the comment form and submits it * @param array $data */ public function writeComment(array $data) { $writeCommentLink = $this->getSession()->getPage()->find("css", ".blog--comments-form a.btn--create-entry"); if ($writeCommentLink) { $writeCommentLink->click(); } Helper::fillForm($this, 'commentForm', $data); Helper::pressNamedButton($this, 'commentFormSubmit'); }
/** * Changes the shipping method * @param array $data */ public function changeShippingMethod($data = []) { Helper::fillForm($this, 'shippingPaymentForm', $data); Helper::pressNamedButton($this, 'changePaymentButton'); }
/** * @param array $data */ public function writeComment(array $data) { Helper::fillForm($this, 'commentForm', $data); Helper::pressNamedButton($this, 'commentFormSubmit'); }
/** * Fills the notification form and submits it * @param string $email */ public function submitNotification($email) { $data = [['field' => 'sNotificationEmail', 'value' => $email]]; Helper::fillForm($this, 'notificationForm', $data); Helper::pressNamedButton($this, 'notificationFormSubmit'); }
/** * @param array $data */ public function register($data) { if ($this->verifyPage('identifierLogin') === true) { Helper::pressNamedButton($this, 'registerButton'); } Helper::fillForm($this, 'registrationForm', $data); Helper::pressNamedButton($this, 'sendButton'); }
/** * @param array $data */ public function changeShippingMethod($data = array()) { Helper::fillForm($this, 'deliveryForm', $data); $locators = array('deliveryFormSubmit'); $elements = Helper::findElements($this, $locators); $elements['deliveryFormSubmit']->press(); }
/** * @param $data */ public function register($data) { $this->verifyPage(); Helper::fillForm($this, 'registrationForm', $data); Helper::pressNamedButton($this, 'sendButton'); }
/** * Changes the shipping method * @param array $data */ public function changeShippingMethod(array $data = []) { Helper::fillForm($this, 'deliveryForm', $data); $elements = Helper::findElements($this, ['deliveryFormSubmit']); $elements['deliveryFormSubmit']->press(); }
/** * Fills the fields of the inquiry form with $data and submits it * @param array $data */ public function submitInquiryForm(array $data) { Helper::fillForm($this, 'inquiryForm', $data); Helper::pressNamedButton($this, 'submitButton'); }