Fakultas Ilmu Komputer UI

Commit 20179eb7 authored by Rahmania Astrid Mochtar's avatar Rahmania Astrid Mochtar
Browse files

replaced firefox with chrome

parent d30322de
Pipeline #24653 passed with stages
in 6 minutes and 31 seconds
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from contextlib import contextmanager
......@@ -70,7 +71,13 @@ 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()
self.browser = webdriver.Firefox()
chrome_options = Options()
chrome_options.add_argument('--dns-prefetch-disable')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--headless')
chrome_options.add_argument('disable-gpu')
self.browser = webdriver.Chrome(chrome_options=chrome_options)
# Francis visits the home page. There is no sign of Edith's
# list
......
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