def clear_location(self): """ Clears bio input """ log.write_line('Clearing location input') self.clear_field(self.location_input)
def wait_for_modal_to_close(self): """ Waits for edit profile modal to close """ log.write_line('Waiting for edit profile modal to close') self.wait_until_invisible(self.edit_profile_modal)
def click_save_button(self): """ Clicks on save button on edit profile modal """ log.write_line('Clicking on \'Save\' button on edit profile modal') self.click(self.save_profile_button)
def clear_bio(self): """ Clears bio input """ log.write_line('Clearing bio input') self.clear_field(self.bio_input)
def click_add_post(self): """ Clicks on 'Tweet' button """ log.write_line('Clicking on \'Tweet\' button') self.click(self.add_post_button)
def fill_editor(self, text): """ Fills in post create editor """ log.write_line('Filling in post create editor with ' + text) self.wait_until_visible_and_send_keys(self.editor_input, text)
def after_all(context): Logger.stop_logger()
def before_all(context): Logger.start_logger() ScreenshotHelper.clear_screenshot_dir()
def click_delete_button(self): """ Clicks on delete button on delete confirmation modal """ log.write_line('Clicking on \'delete\' button on delete confirmation modal') self.click(self.delete_button)