Try changing how the viewer is dismissed.

This commit is contained in:
cahrens
2015-06-11 13:56:55 -04:00
committed by muzaffaryousaf
parent 50a6b3b684
commit dbb5232681

View File

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