diff options
Diffstat (limited to 'etc/ci/performance/gecko_driver.py')
-rw-r--r-- | etc/ci/performance/gecko_driver.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/ci/performance/gecko_driver.py b/etc/ci/performance/gecko_driver.py index fe1450d1d1c..8632a1d5f58 100644 --- a/etc/ci/performance/gecko_driver.py +++ b/etc/ci/performance/gecko_driver.py @@ -71,7 +71,7 @@ def generate_placeholder(testcase): return [timings] -def run_gecko_test(testcase, timeout): +def run_gecko_test(testcase, timeout, is_async): with create_gecko_session() as driver: driver.set_page_load_timeout(timeout) try: @@ -97,6 +97,16 @@ def run_gecko_test(testcase, timeout): print("Failed to get a valid timing measurement.") return generate_placeholder(testcase) + if is_async: + # TODO: the timeout is hardcoded + driver.implicitly_wait(5) # sec + driver.find_element_by_id("GECKO_TEST_DONE") + timings.update(json.loads( + driver.execute_script( + "return JSON.stringify(window.customTimers)" + ) + )) + return [timings] |