Behat jQuery reference

This commit is contained in:
Ingo Schommer 2013-10-07 23:43:30 +02:00
parent 7542a205f6
commit 6a665b4ca2

View File

@ -299,7 +299,7 @@ class CmsUiContext extends BehatContext
$driver->switchToIFrame('cms-preview-iframe');
$this->getSession()->wait(
5000,
"!jQuery('iframe[name=cms-preview-iframe]').hasClass('loading')"
"window.jQuery && !window.jQuery('iframe[name=cms-preview-iframe]').hasClass('loading')"
);
$driver->switchToWindow($origWindowName);
}