Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Go to python 3 (trial 2) #213

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
try to set w3c compatibility checking to false.
  • Loading branch information
justinrporter committed Nov 5, 2019
commit d707cc8ed373f0da62699928a6716b5f107cbc67
9 changes: 7 additions & 2 deletions pttrack/test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib.staticfiles.testing import StaticLiveServerTestCase

from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.chrome import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
Expand All @@ -13,7 +13,12 @@ class SeleniumLiveTestCase(StaticLiveServerTestCase):
@classmethod
def setUpClass(cls):
super(SeleniumLiveTestCase, cls).setUpClass()
cls.selenium = WebDriver()

opt = webdriver.ChromeOptions()
opt.add_experimental_option('w3c', False)
cls.selenium = webdriver.Chrome(chrome_options=opt)

# cls.selenium = WebDriver()
cls.selenium.implicitly_wait(cls.DEFAULT_WAIT_TIME)
cls.selenium.set_page_load_timeout(cls.DEFAULT_WAIT_TIME)

Expand Down