Beispiel #1
0
 def clear_location(self):
     """
     Clears bio input
     """
     log.write_line('Clearing location input')
     self.clear_field(self.location_input)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 def clear_bio(self):
     """
     Clears bio input
     """
     log.write_line('Clearing bio input')
     self.clear_field(self.bio_input)
Beispiel #5
0
 def click_add_post(self):
     """
     Clicks on 'Tweet' button
     """
     log.write_line('Clicking on \'Tweet\' button')
     self.click(self.add_post_button)
Beispiel #6
0
 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)
Beispiel #7
0
def after_all(context):
    Logger.stop_logger()
Beispiel #8
0
def before_all(context):
    Logger.start_logger()
    ScreenshotHelper.clear_screenshot_dir()
Beispiel #9
0
 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)