Commit 20d62213 by muhammad-ammar

Fix Video Transcript Test

TE-460
parent 08a0c639
...@@ -517,10 +517,11 @@ class VideoComponentPage(VideoPage): ...@@ -517,10 +517,11 @@ class VideoComponentPage(VideoPage):
str: status/error message str: status/error message
""" """
if self.q(css=CLASS_SELECTORS[message_type]).visible: if message_type == 'status':
return self.q(css=CLASS_SELECTORS[message_type]).text[0] self.wait_for_element_visibility(CLASS_SELECTORS[message_type],
else: '{} message is Visible'.format(message_type.title()))
return ''
return self.q(css=CLASS_SELECTORS[message_type]).text[0]
def url_field_status(self, *field_numbers): def url_field_status(self, *field_numbers):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment