diff --git a/frontend/test_project/features/web/web_tests.feature b/frontend/test_project/features/web/web_tests.feature index 59364e40..e6035afd 100644 --- a/frontend/test_project/features/web/web_tests.feature +++ b/frontend/test_project/features/web/web_tests.feature @@ -152,7 +152,7 @@ Feature: OrangeHRM Login and Modus QA blog When The element 'Modus_Site > Careers > resume_link' is displayed And I click on button 'Modus_Site > Careers > resume_link' And I set text 'testing resume' to field 'Modus_Site > Careers > resume_text' - And I click item 'Please select the country' for element 'Modus_Site > Careers > form_dropdown' + And I click item 'Please select the country where you are living' for element 'Modus_Site > Careers > form_dropdown' And I click item 'Afghanistan' for element 'Modus_Site > Careers > country_dropdown' And I set text 'Modus Create' to field 'Modus_Site > Careers > current_company' And I set text 'QA Consultant' to field 'Modus_Site > Careers > current_title' diff --git a/frontend/test_project/locators/Web_locators.json b/frontend/test_project/locators/Web_locators.json index b4508746..5c420b5e 100644 --- a/frontend/test_project/locators/Web_locators.json +++ b/frontend/test_project/locators/Web_locators.json @@ -54,7 +54,7 @@ "country_value": "//div/ul[@id='select2List0']/li/div[contains(text(),'{}')]", "current_company": "//input[@id='job_application_answers_attributes_3_text_value']", "current_title": "//input[@id='job_application_answers_attributes_4_text_value']", - "form_dropdown": "//label[contains(text(),'{}')]/div", + "form_dropdown": "//label[contains(text(),'{}')]/div/a/span", "country_dropdown": "//ul[@id='select2List0']/li/div[contains(text(),'{}')]", "legal_dropdown": "//ul[@id='select2List1']/li/div[contains(text(),'{}')]", "consent_dropdown": "//ul[@id='select2List2']/li/div[contains(text(),'{}')]", diff --git a/main/frontend/frontend_plugin.py b/main/frontend/frontend_plugin.py index cbc0a231..3868e536 100644 --- a/main/frontend/frontend_plugin.py +++ b/main/frontend/frontend_plugin.py @@ -124,6 +124,9 @@ def chrome_options(chrome_options, variables, proxy_url, env_variables, request) chrome_options.add_argument("--disable-gpu") chrome_options.add_argument("--disable-dev-shm-usage") chrome_options.add_argument("--window-size=1367,768") + chrome_options.add_argument("--disable-cookies") + chrome_options.add_argument("--disable-extensions") + if os.environ.get("USING_DOCKER", False) == 'True': chrome_options.add_argument("--ignore-certificate-errors") if proxy_url: