Created
September 22, 2014 20:35
-
-
Save alnutile/2b51115f30a490debca5 to your computer and use it in GitHub Desktop.
Using this to fill in the wysiwyg hidden input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @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