Skip to content

Instantly share code, notes, and snippets.

@avnidas avnidas/MultiLineInput
Last active Aug 8, 2016

Embed
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
You can’t perform that action at this time.