Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[RFR] Fix deprecation warnings for switch_to_alert() and log_message() #10237

Merged
merged 1 commit into from
Jul 6, 2020
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 cfme/utils/appliance/implementations/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_alert(self):
return None

try:
return self.selenium.switch_to_alert()
return self.selenium.switch_to.alert()
except NoAlertPresentException:
modal = self._modal_alert
return modal if modal.is_displayed else None
Expand Down
2 changes: 1 addition & 1 deletion cfme/utils/appliance/implementations/ssui.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def go(self, _tries=0, *args, **kwargs):
except NotImplementedError:
nav_args['wait_for_view'] = 0
self.log_message(
"is_displayed not implemented for {} view".format(self.VIEW or ""), level="warn")
"is_displayed not implemented for {} view".format(self.VIEW or ""), level="warning")
except Exception as e:
self.log_message(
f"Exception raised [{e}] whilst checking if already here", level="error")
Expand Down
2 changes: 1 addition & 1 deletion cfme/utils/appliance/implementations/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def go(self, _tries=0, *args, **kwargs):
except NotImplementedError:
nav_args['wait_for_view'] = 0
self.log_message(
"is_displayed not implemented for {} view".format(self.VIEW or ""), level="warn")
"is_displayed not implemented for {} view".format(self.VIEW or ""), level="warning")
except Exception as e:
self.log_message(
f"Exception raised [{e}] whilst checking if already here", level="error")
Expand Down