Exemplo n.º 1
0
 def test_go_expenses_tab(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.expenses_tab_entry()
Exemplo n.º 2
0
    def case_entry_information_edit(self):
        driver = self.driver
        case_details = CaseDetails(driver)
        case_details.workaround_table_list_entries()
        time.sleep(2)
        # Select table last entry
        self.driver.find_element_by_xpath(self.table_last_row_xpath).click()
        # Update button icon first click
        self.driver.find_element_by_xpath(
            self.case_edit_information_btn_xpath).click()
        self.driver.find_element_by_id(
            self.case_subject_txtbox_id).send_keys(" updated")
        # Güncelle button click
        self.driver.find_element_by_id(
            self.case_information_update_btn_id).click()

        self.driver.refresh()

        # Update button icon second click
        self.driver.find_element_by_xpath(
            self.case_edit_information_btn_xpath).click()

        txt_temp = self.driver.find_element_by_id(self.case_subject_txtbox_id)
        # Allure screenshot for the test
        allure.attach(driver.get_screenshot_as_png(),
                      name='screenshot',
                      attachment_type=allure.attachment_type.PNG)
        # The information should be updated by clicking "Güncelle" Button.
        # Currently the user has been forced to click "Kaydet" button as well.
        assert txt_temp.get_attribute(
            'value') == "Law and Person interaction updated"
Exemplo n.º 3
0
 def case_list_records(self):
     driver = self.driver
     case_details = CaseDetails(driver)
     case_details.workaround_table_list_entries()
     time.sleep(2)
     # Count table rows
     row_count = len(
         self.driver.find_elements_by_xpath(
             '//*[@id="DataTables_Table_0"]/tbody/tr'))
     # Allure screenshot for the test
     allure.attach(driver.get_screenshot_as_png(),
                   name='screenshot',
                   attachment_type=allure.attachment_type.PNG)
     assert row_count == 25
Exemplo n.º 4
0
 def test_delete_evidence(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.evidence_tab_entry()
     case_details.delete_evidence_attachment()
Exemplo n.º 5
0
 def test_add_received_payment(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.expenses_tab_entry()
     case_details.add_received_payment()
Exemplo n.º 6
0
 def test_delete_case_information(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.decisions_tab_entry()
     case_details.delete_case_information()
Exemplo n.º 7
0
 def test_add_kararlar(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.decisions_tab_entry()
     case_details.add_kararlar()
Exemplo n.º 8
0
 def test_delete_letter_of_application(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.letter_of_application_tab_entry()
     case_details.delete_letter_of_application()
Exemplo n.º 9
0
 def test_delete_added_request(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.request_tab_entry()
     case_details.delete_added_request()
Exemplo n.º 10
0
 def test_add_evidence_pdf(self):
     driver = self.driver
     self.login()
     case_details = CaseDetails(driver)
     home = HomePage(driver)
     home.click_law_suit_page()
     case_details.evidence_tab_entry()
     case_details.add_evidence_attachment_pdf()
     time.sleep(5)