コード例 #1
0
        """
        打开借阅申请页面
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['借阅续借']['借阅申请']['借阅申请按钮'])

    def open_my_borrowing(self):
        """
        打开我的借阅页面
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['借阅续借']['我的借阅']['我的借阅按钮'])


if __name__ == '__main__':
    b = BBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.select_borrowing()
    b.open_my_borrowing()
    b.driver.sleep(3)
    b.open_borrowing_apply()
    b.driver.sleep(3)
    b.driver.quit()
コード例 #2
0
        待复审文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['文件复审']['待复审文件']['待复审文件按钮'])

    def open_expired_documents(self):
        """
        已过期文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['文件复审']['已过期文件']['已过期文件按钮'])


if __name__ == '__main__':
    b = DRBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.select_document_review()
    b.driver.sleep(3)
    b.open_document_to_be_routine_reviewed()
    b.driver.sleep(3)
    b.open_expired_documents()
    b.driver.sleep(3)
    b.driver.quit()
コード例 #3
0
        """
        待签收文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['文件签收']['待签收文件']['待签收文件按钮'])

    def open_received_document(self):
        """
        已签收文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['文件签收']['已签收文件']['已签收文件按钮'])


if __name__ == '__main__':
    b = DSBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.select_document_signature()
    b.open_to_be_received_documents()
    b.driver.sleep(3)
    b.open_received_document()
    b.driver.sleep(3)
    b.driver.quit()
コード例 #4
0
        打开文件新增
        :return:
        """
        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['新增修订']['文件新增']['文件新增按钮'])  # 点击文件变更申请,打开页面

    def open_document_revision(self):
        """
        打开文件修订
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['新增修订']['文件修订']['文件修订按钮'])


if __name__ == '__main__':
    b = DPBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.select_document_preparation()
    b.open_document_change_request()
    b.driver.sleep(2)
    b.open_document_addition()
    b.driver.sleep(2)
    b.open_document_revision()
    b.driver.sleep(5)
    b.driver.quit()
コード例 #5
0
        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['系统报表']['审计信息查询']['审计信息查询按钮'])

    def open_department_paper_document(self):
        """
        部门纸质文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['系统报表']['部门纸质文件']['部门纸质文件按钮'])


if __name__ == '__main__':
    b = SRBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.select_system_report()
    b.open_document_number_list()
    b.driver.sleep(3)
    b.open_document_borrowed_records()
    b.driver.sleep(3)
    b.open_audit_information_check()
    b.driver.sleep(3)
    b.open_department_paper_document()
    b.driver.sleep(3)

    b.driver.quit()
コード例 #6
0
        """
        待回收文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['文件回收']['待回收文件']['待回收文件按钮'])

    def open_recovered_docs(self):
        """
        已回收文件
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['文件回收']['已回收文件']['已回收文件按钮'])


if __name__ == '__main__':
    b = DWBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.select_document_withdrawal()
    b.open_withdrawing_docs()
    b.driver.sleep(3)
    b.open_recovered_docs()
    b.driver.sleep(3)
    b.driver.quit()
コード例 #7
0
        self.driver.sleep(0.5)
        self.driver.click(self.element['流程审批']['我的草稿']['我的草稿按钮'])

    def open_my_print_task(self):
        """
        我的打印
        :return:
        """

        self._switch_to_frame()
        self.driver.sleep(0.5)
        self.driver.click(self.element['流程审批']['我的打印']['我的打印按钮'])


if __name__ == '__main__':
    b = PHBasePage(get_driver())
    b.login()
    b.select_dms_page()
    b.driver.sleep(3)
    b.open_my_to_do_items()
    b.driver.sleep(3)
    b.open_my_completed_items()
    b.driver.sleep(3)
    b.open_my_closed_items()
    b.driver.sleep(3)
    b.open_my_application()
    b.driver.sleep(3)
    b.open_my_draft_work()
    b.driver.sleep(3)
    b.open_my_print_task()
    b.driver.sleep(3)
コード例 #8
0
    def document_change_request_input(self, file_name):
        """
        向记录文件信息输入框输入file_name
        :param file_name:
        :return:
        """
        self.driver.send_keys(
            'xpath,/html/body/div[2]/div[1]/div/li[1]/span/span[2]/input[1]',
            file_name)

    def text(self):
        text = self.driver.get_text(
            'xpath,/html/body/div[2]/div[1]/div/li[1]/div/span')
        return text


if __name__ == '__main__':
    b = DocumentChangeRequestPage(get_driver())
    b.login()

    b.select_dms_page()
    b.select_document_preparation()
    b.open_document_change_request()
    b.driver.sleep(1)
    b.open_information_popup_window()
    b.driver.sleep(1)
    print(b.get_information_popup_window_title())
    b.document_change_request_input("tetst")
    b.driver.sleep(3)
    b.driver.quit()