Skip to content

Instantly share code, notes, and snippets.

View selwynpolit's full-sized avatar

Selwyn Polit selwynpolit

View GitHub Profile
A wise old owl lived in an oak
The more he saw the less he spoke
The less he spoke the more he heard.
Why can't we all be like that wise old bird?
This is a test
@johnennewdeeson
johnennewdeeson / FeaturesContext.php
Created January 17, 2016 21:22
CKEditor fill in field in a Behat step definition
/**
* @Then I fill in wysiwyg on field :locator with :value
*/
public function iFillInWysiwygOnFieldWith($locator, $value) {
$el = $this->getSession()->getPage()->findField($locator);
if (empty($el)) {
throw new ExpectationException('Could not find WYSIWYG with locator: ' . $locator, $this->getSession());
}