diff --git a/tools/autotest.py b/tools/autotest.py index 27518e41..5f69189f 100755 --- a/tools/autotest.py +++ b/tools/autotest.py @@ -1,16 +1,20 @@ #!/usr/bin/env python3 +import os +import subprocess +import sys +import time + +if sys.platform == 'haiku1': + print('Automation tests are disabled on Haiku.') + exit(0) + from selenium import webdriver from selenium.webdriver.firefox.service import Service from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.ui import WebDriverWait -import os -import subprocess -import sys -import time - def exists_in_shadow_root(shadow_root, by, value): return lambda driver: shadow_root.find_element(by, value)