From 6ea5a48d9dff7e0db3140650ff563b6020a4a239 Mon Sep 17 00:00:00 2001 From: philip Date: Fri, 24 Nov 2023 13:01:16 +0000 Subject: [PATCH] test circleci --- doajtest/selenium_helpers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doajtest/selenium_helpers.py b/doajtest/selenium_helpers.py index 68e9ae5581..3ce69dfddc 100644 --- a/doajtest/selenium_helpers.py +++ b/doajtest/selenium_helpers.py @@ -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')