From 0799b3ef21103cf205cccfe91306eca5ec4fe6a4 Mon Sep 17 00:00:00 2001 From: Artur Nowakowski Date: Mon, 9 Dec 2019 11:31:54 +0100 Subject: [PATCH] setting driver options in set_chrome --- selenium/test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/selenium/test.py b/selenium/test.py index 5f0e28a..02e5bc0 100755 --- a/selenium/test.py +++ b/selenium/test.py @@ -9,7 +9,6 @@ class ClearBowlTest(unittest.TestCase): super().__init__(*args, **kwargs) self.driver = self.set_chrome() - self.driver.implicitly_wait(15) self.base_url = "https://clearbowl.herokuapp.com" def test_login(self): @@ -30,7 +29,10 @@ class ClearBowlTest(unittest.TestCase): options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') - return webdriver.Chrome(options=options) + driver = webdriver.Chrome(options=options) + driver.implicitly_wait(15) + + return driver def tearDown(self): self.driver.quit()