Fakultas Ilmu Komputer UI

Commit 38ab7977 authored by Rahmania Astrid Mochtar's avatar Rahmania Astrid Mochtar
Browse files

changed webdriver to use chrome

parent 5a8e61b8
Pipeline #24560 failed with stages
in 11 minutes and 9 seconds
File added
...@@ -3,6 +3,8 @@ from django.contrib.staticfiles.testing import StaticLiveServerTestCase ...@@ -3,6 +3,8 @@ from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from selenium import webdriver from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import WebDriverException from selenium.common.exceptions import WebDriverException
from selenium.webdriver.chrome.options import Options
import time import time
...@@ -11,7 +13,13 @@ MAX_WAIT = 10 ...@@ -11,7 +13,13 @@ MAX_WAIT = 10
class FunctionalTest(StaticLiveServerTestCase): class FunctionalTest(StaticLiveServerTestCase):
def setUp(self): def setUp(self):
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("./chromedriver", chrome_options=chrome_options)
self.browser.implicitly_wait(3) self.browser.implicitly_wait(3)
def tearDown(self): def tearDown(self):
......
...@@ -2170,3 +2170,11 @@ See /usr/include/servers/bootstrap_defs.h for the error codes. ...@@ -2170,3 +2170,11 @@ See /usr/include/servers/bootstrap_defs.h for the error codes.
1573575185074 Marionette INFO Listening on port 53995 1573575185074 Marionette INFO Listening on port 53995
1573575185143 Marionette WARN TLS certificate errors will be ignored for this session 1573575185143 Marionette WARN TLS certificate errors will be ignored for this session
1573575186907 Marionette INFO Stopped listening on port 53995 1573575186907 Marionette INFO Stopped listening on port 53995
1573576491658 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-foreground" "-no-remote" "-profile" "/var/folders/vz/q0bxc90x711c_lq3g37rtv2w0000gn/T/rust_mozprofile.fjuUviDCDlPN"
1573576493678 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1573576493679 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1573576493679 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1573576493679 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
1573576498978 Marionette INFO Listening on port 54267
1573576499099 Marionette WARN TLS certificate errors will be ignored for this session
1573576501082 Marionette INFO Stopped listening on port 54267
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