示例#1
0
    def test3_ajjdhbb(self):
        """案件进度汇报表"""
        driver = self.driver
        driver.get(self.base_url)

        #longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_oa()

        homepage.sleep(0.5)

        homepage.click_fwgl()

        homepage.click_ssgl()

        homepage.sleep(0.2)

        homepage.click_ajjdhbb()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://oa2.eascs.com/eaoa/rateReportSearchPre.action']"
            ))

        driver.find_element_by_xpath("//*[@onclick='btnSearch();']").click()
        #driver.refresh()
        #a=driver.find_element_by_xpath("//*[@onclick='Search()']").get_attribute("value")
        a = driver.find_element_by_xpath(
            "html/body/div[2]/table/tbody/tr/td[2]").text
        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, "案件程序编号")
        homepage.get_page_title()
        print("***测试通过***")
示例#2
0
    def test3_sscxsq(self):
        """诉讼程序申请"""
        driver = self.driver
        driver.get(self.base_url)

        #longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_oa()

        homepage.sleep(0.5)

        homepage.click_fwgl()

        homepage.click_cqxmgl()

        homepage.sleep(0.1)

        homepage.click_sscxsq()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://oa2.eascs.com/eaoa/lawsuitApplySearchPre.action']"
            ))

        driver.find_element_by_xpath("//*[@onclick='btnSearch();']").click()
        #driver.refresh()
        a = driver.find_element_by_xpath(
            "html/body/div[2]/table/tbody/tr/td[2]").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, "单据编号")
        homepage.get_page_title()
        print("***测试通过***")