diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py index 7f20c6342..3a5d32cfa 100644 --- a/ipatests/test_webui/ui_driver.py +++ b/ipatests/test_webui/ui_driver.py @@ -2305,10 +2305,10 @@ class UI_driver: notification_type = 'div.notification-area .alert-{}'.format(type) # wait for a half sec for notification to appear self.wait(0.5) - is_present = self.find(notification_type, By.CSS_SELECTOR) + is_present = self.find(notification_type, By.CSS_SELECTOR, many=True) assert is_present, "Notification not present" if assert_text: - assert assert_text in is_present.text + assert any(map(lambda x: assert_text in x.text, is_present)) def assert_last_error_dialog(self, expected_err, details=False, dialog_name='error_dialog'):