Switched selenium from using firefox to using chrome
This commit is contained in:
parent
807bf87351
commit
949dca4abb
@ -22,9 +22,12 @@ TIMEOUT = 8
|
|||||||
class SeleniumTest(LiveServerTestCase):
|
class SeleniumTest(LiveServerTestCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
profile = webdriver.FirefoxProfile()
|
chrome_options = webdriver.ChromeOptions()
|
||||||
profile.set_preference("dom.forms.number", False)
|
chrome_options.add_argument('--no-sandbox')
|
||||||
cls.sl = webdriver.Firefox(profile)
|
cls.sl = webdriver.Chrome(chrome_options=chrome_options)
|
||||||
|
# profile = webdriver.FirefoxProfile()
|
||||||
|
# profile.set_preference("dom.forms.number", False)
|
||||||
|
# cls.sl = webdriver.Firefox(profile)
|
||||||
cls.sl.implicitly_wait(TIMEOUT)
|
cls.sl.implicitly_wait(TIMEOUT)
|
||||||
super(SeleniumTest, cls).setUpClass()
|
super(SeleniumTest, cls).setUpClass()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user