mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Improve handling of remote test drivers
This commit is contained in:
@@ -18,7 +18,13 @@ class BrowserTest(StaticLiveServerTestCase):
|
||||
settings.DEBUG = ('--debug' in sys.argv)
|
||||
|
||||
def setUp(self):
|
||||
self.driver = getattr(webdriver, BROWSER)()
|
||||
if hasattr(webdriver, BROWSER):
|
||||
self.driver = getattr(webdriver, BROWSER)()
|
||||
else:
|
||||
self.driver = webdriver.Remote(
|
||||
desired_capabilities=webdriver.DesiredCapabilities.CHROME,
|
||||
command_executor=BROWSER
|
||||
)
|
||||
self.driver.set_window_size(1920, 1080)
|
||||
self.driver.implicitly_wait(10)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user