Skip to content

Instantly share code, notes, and snippets.



Last active Aug 8, 2016
What would you like to do?
Behat scenario multi line input
* Sets the specified multi-line value to the field
* @Given /^I set the text field "(?P<field_string>(?:[^"]|\\")*)" with multi-line text:/
public function i_set_the_text_field_with_multi_line_text($field, \Behat\Gherkin\Node\PyStringNode $value) {
$this->getSession()->getPage()->fillField($field, $value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment