/** * Fill credit card. * * @param Cc $creditCard * @return void */ public function fillCc(Cc $creditCard) { $this->waitForElementVisible($this->centinel); $this->browser->switchToFrame(new Locator($this->centinel)); $element = $this->getRootElement(); parent::fill($creditCard, $element); }
/** * Fill the root form. * * @param FixtureInterface $review * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $review, SimpleElement $element = null) { if ($review->hasData('ratings')) { $this->fillRatings($review); } return parent::fill($review, $element); }
/** * Fill the customer data * * @param FixtureInterface $customer * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $customer, SimpleElement $element = null) { /** @var Customer $customer */ if ($customer->hasData()) { return parent::fill($customer, $element); } }
/** * Fill currency rate form. * * @param FixtureInterface $fixture * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { /** @var \Magento\Directory\Test\Fixture\CurrencyRate $fixture */ $this->placeholders['currency_from'] = $fixture->getCurrencyFrom(); $this->placeholders['currency_to'] = $fixture->getCurrencyTo(); $this->applyPlaceholders(); return parent::fill($fixture, $element); }
/** * Fill the root form * * @param FixtureInterface $fixture * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { $element = $this->_rootElement->find(sprintf($this->currencyRow, $fixture->getCode()), Locator::SELECTOR_XPATH); return parent::fill($fixture, $element); }
/** * Fill the page form. * * @param FixtureInterface $fixture * @param SimpleElement $element * @return $this */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { return parent::fill($fixture, $element); }
/** * Fill the root form. * * @param FixtureInterface $fixture * @param SimpleElement $element * @return $this|void * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { $this->openAdditionalSettings(); $this->_rootElement->click(); /** @var TaxRule $fixture */ $this->addNewTaxRates($fixture); if ($fixture->hasData('tax_customer_class')) { $this->_rootElement->click(); $taxCustomerBlock = $this->_rootElement->find($this->taxCustomerBlock, Locator::SELECTOR_CSS, 'multiselectlist'); $this->waitForElementVisible(sprintf($this->taxClassMultiSelectList, 'customer'), Locator::SELECTOR_XPATH); $this->addNewTaxClass($fixture->getTaxCustomerClass(), $taxCustomerBlock); } if ($fixture->hasData('tax_product_class')) { $this->_rootElement->click(); $taxProductBlock = $this->_rootElement->find($this->taxProductBlock, Locator::SELECTOR_CSS, 'multiselectlist'); $this->waitForElementVisible(sprintf($this->taxClassMultiSelectList, 'product'), Locator::SELECTOR_XPATH); $this->addNewTaxClass($fixture->getTaxProductClass(), $taxProductBlock); } $this->_rootElement->click(); parent::fill($fixture); }
/** * Fill the root form. * * @param FixtureInterface $customer * @param Element|null $element * @return $this */ public function fill(FixtureInterface $customer, Element $element = null) { $element = $this->switchOnPayPalFrame($element); $this->waitForElementNotVisible($this->loader); return parent::fill($customer, $element); }
/** * Fill the wishlist form. * * @param Wishlist $fixture * @return void */ public function fillWishlist(Wishlist $fixture) { parent::fill($fixture); $this->save(); }
/** * Fill the root form. * * @param InjectableFixture $customer * @param Element|null $element * @return $this */ public function fill(InjectableFixture $customer, Element $element = null) { $this->waitForElementNotVisible($this->loader); return parent::fill($customer, $element); }
/** * Fill backend GiftMessage item form. * * @param FixtureInterface $fixture * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { parent::fill($fixture, $element); $this->_rootElement->find($this->okButton)->click(); }
/** * Fill the page form. * * @param FixtureInterface $fixture * @param SimpleElement $element * @return $this */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { $this->hideEditor(); return parent::fill($fixture, $element); }
/** * Fill form. * * @param FixtureInterface $checkoutAgreement * @param Element|null $element * @return $this */ public function fill(FixtureInterface $checkoutAgreement, Element $element = null) { parent::fill($checkoutAgreement, $element); $this->fillWebsite(); return $this; }
/** * Apply gift card account. * * @param GiftCardAccount $giftCardAccount * @return void */ public function applyGiftCardAccount(GiftCardAccount $giftCardAccount) { parent::fill($giftCardAccount); $this->_rootElement->find($this->addGiftCardButton)->click(); $this->getTemplateBlock()->waitLoader(); }
/** * Fill the root form. * * @param FixtureInterface $urlRewrite * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $urlRewrite, SimpleElement $element = null) { $this->fillStore($urlRewrite); return parent::fill($urlRewrite); }
/** * Apply Sales rule coupon. * * @param SalesRule $salesRule * @return void */ public function applyCouponsCode(SalesRule $salesRule) { parent::fill($salesRule); $this->_rootElement->find($this->applyButton, Locator::SELECTOR_XPATH)->click(); $this->getTemplateBlock()->waitLoader(); }
/** * Fill the root form * * @param FixtureInterface $giftWrapping * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $giftWrapping, SimpleElement $element = null) { $this->fillWebsites($giftWrapping); return parent::fill($giftWrapping); }
/** * Ensure the form is loaded and fill the root form * * @param FixtureInterface $fixture * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $fixture, SimpleElement $element = null) { $this->waitForElementVisible($this->firstField); return parent::fill($fixture, $element); }
/** * Fill the root form. * * @param FixtureInterface $rma * @param Element|null $element * @return $this */ public function fill(FixtureInterface $rma, Element $element = null) { $this->getItemsBlock()->fill($rma); parent::fill($rma, $element); return $this; }
/** * Fill form. * * @param FixtureInterface $sitemap * @param SimpleElement|null $element * @return $this */ public function fill(FixtureInterface $sitemap, SimpleElement $element = null) { $this->fillStoreView($sitemap); return parent::fill($sitemap, $element); }