Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606885025-practice
Commits
a49d9848
Commit
a49d9848
authored
Nov 21, 2019
by
Rani Lasma Uli
Browse files
spiked in custom passwordless auth backend
parent
9c5ef857
Changes
1
Hide whitespace changes
Inline
Side-by-side
functional_tests/base.py
View file @
a49d9848
...
...
@@ -18,13 +18,15 @@ class FunctionalTest(StaticLiveServerTestCase):
self
.
options
.
add_argument
(
'--no-sandbox'
)
self
.
options
.
add_argument
(
'--headless'
)
self
.
options
.
add_argument
(
'disable-gpu'
)
self
.
options
.
add_argument
(
'--dns-prefetch-disable'
)
self
.
options
.
add_argument
(
"--disable-gpu"
)
self
.
options
.
add_argument
(
"--disable-extensions"
)
self
.
createBrowserInstance
()
def
createBrowserInstance
(
self
):
try
:
self
.
browser
=
webdriver
.
Chrome
(
options
=
self
.
options
)
except
WebDriverException
:
# linux
self
.
browser
=
webdriver
.
Chrome
(
'./chromedriver'
,
options
=
self
.
options
)
self
.
browser
.
implicitly_wait
(
3
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment