You are here

public function FeatureContext::iFillInTheWysiwygEditor in Bear 7

@When /^I fill in the "([^"]*)" WYSIWYG editor with "([^"]*)"$/

File

tests/features/bootstrap/FeatureContext.php, line 274

Class

FeatureContext
Defines application features from the specific context.

Code

public function iFillInTheWysiwygEditor($instanceId, $text) {
  $instance = $this
    ->getWysiwygInstance($instanceId);
  $this
    ->getSession()
    ->executeScript("{$instance}.setContent(\"{$text}\");");
}