There was an error while loading. Please reload this page.
2 parents e73cb64 + c2e87d8 commit 5ae0ed2Copy full SHA for 5ae0ed2
1 file changed
module/VisualCeption.php
@@ -380,7 +380,9 @@ private function hideElementsForScreenshot(array $excludeElements)
380
foreach ($excludeElements as $element) {
381
$this->hideElement($element);
382
}
383
- $this->webDriverModule->wait(1);
+ if (!empty($excludeElements)) {
384
+ $this->webDriverModule->waitForElementNotVisible(array_pop($excludeElements));
385
+ }
386
387
388
/**
@@ -393,7 +395,9 @@ private function resetHideElementsForScreenshot(array $excludeElements)
393
395
394
396
$this->showElement($element);
397
398
399
+ $this->webDriverModule->waitForElementVisible(array_pop($excludeElements));
400
401
402
403
0 commit comments