Skip to content

Instantly share code, notes, and snippets.

@alnutile
Created September 22, 2014 20:35
Show Gist options
  • Save alnutile/2b51115f30a490debca5 to your computer and use it in GitHub Desktop.
Save alnutile/2b51115f30a490debca5 to your computer and use it in GitHub Desktop.
Using this to fill in the wysiwyg hidden input
/**
* @Then /^I fill in wysiwyg on field "([^"]*)" with "([^"]*)"$/
*/
public function iFillInWysiwygOnFieldWith($arg, $arg2)
{
$js = <<<HEREDOC
jQuery("textarea[name='$arg']").css('visibility', 'visible');
jQuery("textarea[name='$arg']").show();
HEREDOC;
$this->getSession()->executeScript($js);
$this->fillField($arg, $arg2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment