Commit dbb52326 by cahrens Committed by muzaffaryousaf

Try changing how the viewer is dismissed.

parent 50a6b3b6
...@@ -564,7 +564,7 @@ class EdxNoteHighlight(NoteChild): ...@@ -564,7 +564,7 @@ class EdxNoteHighlight(NoteChild):
""" """
Clicks cancel button. Clicks cancel button.
""" """
self.q(css=self._bounded_selector(".annotator-cancel")).first.click() self.q(css=self._bounded_selector(".annotator-close")).first.click()
self.wait_for_notes_invisibility("Note is canceled.") self.wait_for_notes_invisibility("Note is canceled.")
return self return self
...@@ -605,8 +605,7 @@ class EdxNoteHighlight(NoteChild): ...@@ -605,8 +605,7 @@ class EdxNoteHighlight(NoteChild):
text = element.text[0].strip() text = element.text[0].strip()
else: else:
text = None text = None
self.q(css=("body")).first.click() self.cancel()
self.wait_for_notes_invisibility()
return text return text
@text.setter @text.setter
...@@ -629,8 +628,7 @@ class EdxNoteHighlight(NoteChild): ...@@ -629,8 +628,7 @@ class EdxNoteHighlight(NoteChild):
if tags: if tags:
for tag in tags: for tag in tags:
tag_text.append(tag.text) tag_text.append(tag.text)
self.q(css="body").first.click() self.cancel()
self.wait_for_notes_invisibility()
return tag_text return tag_text
@tags.setter @tags.setter
......
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