'Trigger clicking event of the undo changes button in the modal.
Wait for the undoing process to load via ajax call.
Before that Scroll so the button is clickable on all browsers'

def undo_changes_via_modal(self):

    self.browser.execute_script(('window.scrollTo' + str(self.coordinates_for_scrolling(UNDO_BUTTON_SELECTOR))))
    self.q(css=UNDO_BUTTON_SELECTOR).click()
    self.wait_for_ajax()
