def login_to_jira(self, username, password):
     UIInteractions.input_text_value(self.driver, LoginPage.login_form_id,
                                     username)
     UIInteractions.input_text_value(self.driver,
                                     LoginPage.password_form_id, password)
     UIInteractions.submit(self.driver, LoginPage.login_button_id)
     sleep(3)
     return Dashboard(self.driver)
Example #2
0
 def create_issue(self, project, issue, summary):
     UIInteractions.click(self.driver, CreateIssue.assignee_link)
     UIInteractions.input_text_value(self.driver,
                                     CreateIssue.summary_input_field, "")
     UIInteractions.input_text_value(self.driver,
                                     CreateIssue.summary_input_field,
                                     summary)
     UIInteractions.input_issue_value(self.driver,
                                      CreateIssue.project_dropdown_field,
                                      project)
     UIInteractions.input_issue_value(self.driver,
                                      CreateIssue.issuetype_dropdown_field,
                                      issue)