コード例 #1
0
 def clear_location(self):
     """
     Clears bio input
     """
     log.write_line('Clearing location input')
     self.clear_field(self.location_input)
コード例 #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)
コード例 #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)
コード例 #4
0
 def clear_bio(self):
     """
     Clears bio input
     """
     log.write_line('Clearing bio input')
     self.clear_field(self.bio_input)
コード例 #5
0
 def click_add_post(self):
     """
     Clicks on 'Tweet' button
     """
     log.write_line('Clicking on \'Tweet\' button')
     self.click(self.add_post_button)
コード例 #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)
コード例 #7
0
ファイル: environment.py プロジェクト: Piorys/BehaveProject
def after_all(context):
    Logger.stop_logger()
コード例 #8
0
ファイル: environment.py プロジェクト: Piorys/BehaveProject
def before_all(context):
    Logger.start_logger()
    ScreenshotHelper.clear_screenshot_dir()
コード例 #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)