'Clicks "Preview", which will open the draft version of the unit page in the LMS.
Switches the browser to the newly opened LMS window.'

def preview(self):

    self.q(css='.button-preview').first.click()
    self._switch_to_lms()
