Fakultas Ilmu Komputer UI

Commit ed4d19e0 authored by Yumna Pratista's avatar Yumna Pratista
Browse files

edited gecko

parent 158df638
Pipeline #23299 failed with stages
in 7 minutes and 2 seconds
......@@ -8,14 +8,14 @@ MAX_WAIT = 10
class FunctionalTest(StaticLiveServerTestCase):
def setUp(self):
# chrome_options = Options()
# chrome_options.add_argument('--dns-prefatch-disable')
# chrome_options.add_argument('--no-sandbox')
# chrome_options.add_argument('--headless')
# chrome_options.add_argument('--disable-gpu')
chrome_options = Options()
chrome_options.add_argument('--dns-prefatch-disable')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-gpu')
# self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
self.browser = webdriver.Firefox()
self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
# self.browser = webdriver.Firefox()
# self.browser.implicitly_wait(20)
def tearDown(self):
......
......@@ -60,14 +60,14 @@ class NewVisitorTest(FunctionalTest):
# We use a new browser session to make sure that no information
# of Edith's is coming through from cookies etc
self.browser.quit()
# chrome_options = Options()
# chrome_options.add_argument('--dns-prefatch-disable')
# chrome_options.add_argument('--no-sandbox')
# chrome_options.add_argument('--headless')
# chrome_options.add_argument('--disable-gpu')
# self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
self.browser = webdriver.Firefox()
chrome_options = Options()
chrome_options.add_argument('--dns-prefatch-disable')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-gpu')
self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
# self.browser = webdriver.Firefox()
# Francis visits the home page. There is no sign of Edith's
# list
self.browser.get(self.live_server_url)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment