forked from cory/tildefriends
		
	Disable Haiku automation tests until I find a way to automate a browser on Haiku.
This commit is contained in:
		| @@ -1,16 +1,20 @@ | |||||||
| #!/usr/bin/env python3 | #!/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 import webdriver | ||||||
| from selenium.webdriver.firefox.service import Service | from selenium.webdriver.firefox.service import Service | ||||||
| from selenium.webdriver.common.by import By | from selenium.webdriver.common.by import By | ||||||
| from selenium.webdriver.support import expected_conditions | from selenium.webdriver.support import expected_conditions | ||||||
| from selenium.webdriver.support.ui import WebDriverWait | from selenium.webdriver.support.ui import WebDriverWait | ||||||
|  |  | ||||||
| import os |  | ||||||
| import subprocess |  | ||||||
| import sys |  | ||||||
| import time |  | ||||||
|  |  | ||||||
| def exists_in_shadow_root(shadow_root, by, value): | def exists_in_shadow_root(shadow_root, by, value): | ||||||
| 	return lambda driver: shadow_root.find_element(by, value) | 	return lambda driver: shadow_root.find_element(by, value) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user