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