Skip to content
Permalink
Browse files

BUG Prevent intermittent "Element is not currently visible and so may…

… not be interacted with"
  • Loading branch information
Damian Mooyman
Damian Mooyman committed Oct 24, 2016
1 parent 02af9b8 commit e83f3962a1c6d3f16cb66f70187f8297059a316f
@@ -239,7 +239,7 @@ public function iExpandTheContentFilters($action) {
$filterButtonCssClass = $filterButton->getAttribute('class');
if($action == 'expand') {
if($action === 'expand') {
if(strpos($filterButtonCssClass, 'active') === false) {
$filterButton->click();
}
@@ -250,6 +250,17 @@ public function iExpandTheContentFilters($action) {
}
$this->getSession()->wait(2000, 'window.jQuery(".cms-content-filters:animated").length === 0');
// If activating, wait until chosen is activated
if ($action === 'expand') {
$this->getSession()->wait(
2000,
<<<'SCRIPT'
(window.jQuery(".cms-content-filters select").length === 0) ||
(window.jQuery(".cms-content-filters select:visible.has-chosen").length > 0)
SCRIPT
);
}
}
/**

0 comments on commit e83f396

Please sign in to comment.
You can’t perform that action at this time.