當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Helper::pressNamedButton方法代碼示例

本文整理匯總了PHP中Shopware\Tests\Mink\Helper::pressNamedButton方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper::pressNamedButton方法的具體用法?PHP Helper::pressNamedButton怎麽用?PHP Helper::pressNamedButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Shopware\Tests\Mink\Helper的用法示例。


在下文中一共展示了Helper::pressNamedButton方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: changeShippingMethod

 /**
  * 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');
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:11,代碼來源:CheckoutConfirm.php

示例2: unsubscribeNewsletter

 /**
  * @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');
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:10,代碼來源:Newsletter.php

示例3: changeShippingMethod

 /**
  * 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');
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:12,代碼來源:CheckoutConfirm.php

示例4: searchFor

 /**
  * Searches the given term in the shop
  * @param string $searchTerm
  */
 public function searchFor($searchTerm)
 {
     $data = [['field' => 'sSearch', 'value' => $searchTerm]];
     $searchForm = $this->getElement('SearchForm');
     Helper::fillForm($searchForm, 'searchForm', $data);
     Helper::pressNamedButton($searchForm, 'searchButton');
     $this->verifyResponse();
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:12,代碼來源:Homepage.php

示例5: searchFor

 /**
  * Searches the given term in the shop
  * @param string $searchTerm
  */
 public function searchFor($searchTerm)
 {
     $data = array(array('field' => 'sSearch', 'value' => $searchTerm));
     $searchForm = $this->getElement('SearchForm');
     $language = Helper::getCurrentLanguage($this);
     Helper::fillForm($searchForm, 'searchForm', $data);
     Helper::pressNamedButton($searchForm, 'searchButton', $language);
     $this->verifyResponse();
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:13,代碼來源:Homepage.php

示例6: writeComment

 /**
  * 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');
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:13,代碼來源:Blog.php

示例7: changeShippingMethod

 /**
  * Changes the shipping method
  * @param array $data
  */
 public function changeShippingMethod($data = [])
 {
     Helper::fillForm($this, 'shippingPaymentForm', $data);
     Helper::pressNamedButton($this, 'changePaymentButton');
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:9,代碼來源:CheckoutCart.php

示例8: writeComment

 /**
  * @param array $data
  */
 public function writeComment(array $data)
 {
     Helper::fillForm($this, 'commentForm', $data);
     Helper::pressNamedButton($this, 'commentFormSubmit');
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:8,代碼來源:Blog.php

示例9: submitNotification

 /**
  * 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');
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:10,代碼來源:Detail.php

示例10: searchAddress

 /**
  * @param AddressBox $addresses
  * @param string $name
  * @throws \Exception
  */
 protected function searchAddress(AddressBox $addresses, $name)
 {
     /** @var AddressBox $address */
     foreach ($addresses as $address) {
         if (strpos($address->getProperty('title'), $name) === false) {
             continue;
         }
         $language = Helper::getCurrentLanguage($this);
         Helper::pressNamedButton($address, 'chooseButton', $language);
         return;
     }
     $messages = array('The address "' . $name . '" is not available. Available are:');
     /** @var AddressBox $address */
     foreach ($addresses as $address) {
         $messages[] = $address->getProperty('title');
     }
     Helper::throwException($messages);
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:23,代碼來源:Account.php

示例11: changeShippingAddress

 /**
  * @param array $data
  */
 public function changeShippingAddress($data = array())
 {
     $element = $this->getElement('CheckoutShipping');
     $language = Helper::getCurrentLanguage($this);
     Helper::clickNamedLink($element, 'changeButton', $language);
     $account = $this->getPage('Account');
     Helper::fillForm($account, 'shippingForm', $data);
     Helper::pressNamedButton($account, 'changeShippingButton', $language);
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:12,代碼來源:CheckoutConfirm.php

示例12: register

 /**
  * @param $data
  */
 public function register($data)
 {
     $this->verifyPage();
     Helper::fillForm($this, 'registrationForm', $data);
     Helper::pressNamedButton($this, 'sendButton');
 }
開發者ID:BucherStoerzbachGbR,項目名稱:shopware,代碼行數:9,代碼來源:Account.php

示例13: changeShippingAddress

 /**
  * Changes the shipping address
  * @param array $data
  */
 public function changeShippingAddress(array $data = [])
 {
     $element = $this->getElement('CheckoutShipping');
     Helper::clickNamedLink($element, 'changeButton');
     $account = $this->getPage('Account');
     Helper::fillForm($account, 'shippingForm', $data);
     Helper::pressNamedButton($account, 'changeShippingButton');
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:12,代碼來源:CheckoutConfirm.php

示例14: submitInquiryForm

 /**
  * 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');
 }
開發者ID:GerDner,項目名稱:luck-docker,代碼行數:9,代碼來源:Form.php


注:本文中的Shopware\Tests\Mink\Helper::pressNamedButton方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。