Fakultas Ilmu Komputer UI

Commit c442e704 authored by Yumna Pratista Tastaftian's avatar Yumna Pratista Tastaftian
Browse files

changed to chrome

parent 09e2e212
Pipeline #26103 passed with stages
in 6 minutes and 4 seconds
......@@ -10,17 +10,17 @@ 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)
firefox_options = firefox_opt()
firefox_options.headless = True
self.browser = webdriver.Firefox(options=firefox_options)
self.browser.implicitly_wait(20)
self.browser = webdriver.Chrome('./chromedriver', chrome_options=chrome_options)
# firefox_options = firefox_opt()
# firefox_options.headless = True
# self.browser = webdriver.Firefox(options=firefox_options)
# self.browser.implicitly_wait(20)
def tearDown(self):
self.browser.quit()
......
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