From c63526fe1c2c0a032552bd16baad86d4513b8abc Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Wed, 28 Feb 2024 08:01:14 +0000 Subject: [PATCH] Bug 1881661 - Wait for h264 video iframe correctly r=mboldan,benchatt Differential Revision: https://phabricator.services.mozilla.com/D202800 --- taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py b/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py index 2744c2ed5770..c583f3bbc4fb 100644 --- a/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py +++ b/taskcluster/docker/snap-coreXX-build/snap-tests/qa_tests.py @@ -35,7 +35,9 @@ class QATests(SnapTestsBase): if iframe_selector: self._logger.info("find iframe") - iframe = self._driver.find_element(By.CSS_SELECTOR, iframe_selector) + iframe = self._wait.until( + EC.visibility_of_element_located((By.CSS_SELECTOR, iframe_selector)) + ) self._driver.switch_to.frame(iframe) self._logger.info("find video") -- 2.11.4.GIT