You are here

public function BrowserKitDriver::submitForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::submitForm()

Submits the form.

Parameters

string $xpath Xpath.:

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides CoreDriver::submitForm

See also

\Behat\Mink\Element\NodeElement::submitForm

File

vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php, line 527

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

public function submitForm($xpath) {
  $crawler = $this
    ->getFilteredCrawler($xpath);
  $this
    ->submit($crawler
    ->form());
}