You are here

public function FeatureContext::iTypeInTheWysiwygEditor in Bear 7

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

File

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

Class

FeatureContext
Defines application features from the specific context.

Code

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