public function WysiwygSubContext::iFillInTheWysiwygEditor in Panopoly 7
Same name and namespace in other branches
- 8.2 modules/panopoly/panopoly_test/behat/steps/panopoly_test_wysiwyg.behat.inc \WysiwygSubContext::iFillInTheWysiwygEditor()
@When I fill in the :instanceId WYSIWYG editor with :text
File
- modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test_wysiwyg.behat.inc, line 102 - Provide Behat step-definitions for WYSIWYG editor.
Class
Code
public function iFillInTheWysiwygEditor($instanceId, $text) {
$instance = $this
->getWysiwygInstance($instanceId);
$this
->getSession()
->executeScript("{$instance}.setContent(\"{$text}\");");
}