for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Behat\Page\Shop\Checkout;
use Sylius\Behat\Page\ElementNotFoundException;
use Sylius\Behat\Page\SymfonyPage;
/**
* @author Arkadiusz Krakowiak <[email protected]>
class PaymentStep extends SymfonyPage implements PaymentStepInterface
{
* {@inheritdoc}
public function selectPaymentMethod($paymentMethod)
$radio = $this->getDocument()->findField($paymentMethod);
if (null === $radio) {
throw new ElementNotFoundException('Payment method not found or it is not visible');
}
$this->getDocument()->fillField($radio->getAttribute('name'), $radio->getAttribute('value'));
public function continueCheckout()
$this->getDocument()->pressButton('Continue');
* @return string
protected function getRouteName()
return 'sylius_checkout_payment';