Skip to content

QA-6444 fix for casesearch split screen failure #334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Features/CaseSearch/user_inputs/casesearch_user_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CaseSearchUserInput:
casesearch = "casesearch"
casesearch_1 = "casesearch-1"
casesearch_2 = "casesearch-2"
casesearch_split_screen = "casesearch-split_screen"
casesearch_split_screen = "casesearch-split-screen"

"""App Names"""
case_search_app_name = "[Master] Music App (Case Search & Claim)"
Expand Down
9 changes: 7 additions & 2 deletions common_utilities/selenium/webapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,16 @@ def login_as(self, username, url=None):
if url!=None:
self.driver.get(url)
time.sleep(10)
else:
self.js_click(self.webapps_home)
time.sleep(10)
try:
self.click(self.webapp_login)
self.wait_for_element(self.webapp_login)
self.js_click(self.webapp_login)
except NoSuchElementException:
self.wait_to_click(self.webapps_home)
self.click(self.webapp_login)
self.wait_for_element(self.webapp_login)
self.js_click(self.webapp_login)
self.send_keys(self.search_user_webapps, username)
self.click(self.search_button_webapps)
self.select_user(username)
Expand Down