Skip to content

Commit

Permalink
test circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkcl committed Nov 24, 2023
1 parent e18c0b9 commit 6ea5a48
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doajtest/selenium_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,14 @@ def setUp(self):
# run selenium with your local browser
options = webdriver.ChromeOptions()
options.add_argument('--start-maximized') # maximize browser window
options.add_argument('--ignore-certificate-errors')
options.add_argument('--ignore-ssl-errors')
options.add_argument('--allow-insecure-localhost')
if self.app_test.config.get('SELENIUM_HEADLESS', False):
options.add_argument('--headless')
options.capabilities['acceptInsecureCerts'] = True
options.add_argument("--window-size=1400,600")
browser_driver = webdriver.Chrome(options=options, )

self.selenium = browser_driver
self.selenium.maximize_window() # avoid something is not clickable
self.selenium.set_window_size(1400, 600) # avoid something is not clickable

# wait for server to start
wait_unit(self._is_doaj_server_running, 10, 1.5, timeout_msg='doaj server not started')
Expand Down

0 comments on commit 6ea5a48

Please sign in to comment.