Commit 183bc9ec authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Adding ability to fill in a tinymce form (Bug #1447449)

Change-Id: I54d06c5201a87e5e6edbd6f9d1134b53b44a30d9
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 312f65f0
......@@ -794,4 +794,20 @@ class BehatGeneral extends BehatBase {
* Fills in WYSIWYG editor with specified id.
* @Given /^(?:|I )fill in "(?P<text>[^"]*)" in WYSIWYG editor "(?P<iframe>[^"]*)"$/
public function iFillInInWYSIWYGEditor($text, $iframe) {
try {
catch (Exception $e) {
throw new \Exception(sprintf("No iframe with id '%s' found on the page '%s'.", $iframe, $this->getSession()->getCurrentUrl()));
$this->getSession()->executeScript("document.body.innerHTML = '<p>".$text."</p>'");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment