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 ShippingStep extends SymfonyPage implements ShippingStepInterface
{
* {@inheritdoc}
public function selectShippingMethod($shippingMethod)
$radio = $this->getDocument()->findField($shippingMethod);
if (null === $radio) {
throw new ElementNotFoundException('Shipping 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_shipping';