Skip to content

Commit ebdccae

Browse files
fix: replace headless property in browser options class (#4642)
* fix: replace headless property in Firefox options class
1 parent e519c28 commit ebdccae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

acceptance_tests/affiliate_cookie_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AffiliateCookieTestMixin:
3636
def setUp(self):
3737
super().setUp()
3838
opts = Options()
39-
opts.headless = True
39+
opts.add_argument('--headless')
4040
self.browser = webdriver.Firefox(opts)
4141
self.cookie_name = AFFILIATE_COOKIE_NAME
4242
self.cookie_domain = COOKIE_DOMAIN

course_discovery/apps/course_metadata/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class ProgramAdminFunctionalTests(SiteMixin, LiveServerTestCase):
295295
def setUpClass(cls):
296296
super().setUpClass()
297297
opts = Options()
298-
opts.headless = True
298+
opts.add_argument('--headless')
299299
cls.browser = webdriver.Firefox(options=opts)
300300
cls.browser.set_window_size(1024, 768)
301301

course_discovery/apps/tagging/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class CourseTaggingDetailViewJSTests(SiteMixin, LiveServerTestCase):
8383
def setUpClass(cls):
8484
super().setUpClass()
8585
firefox_options = Options()
86-
firefox_options.headless = True
86+
firefox_options.add_argument('--headless')
8787
cls.driver = webdriver.Firefox(options=firefox_options)
8888
cls.driver.implicitly_wait(10)
8989

0 commit comments

Comments
 (0)