Ejemplo n.º 1
0
    def test_landlord_read(self):
        '''房东规则'''
        # login_page.LoginPage(self.driver).login()
        # sleep(2)
        landlord_nav_page.LandlordNavPage(self.driver).Iamlandlord()
        sleep(2)
        # landlord_nav_page.LandlordNavPage(self.driver).close_weiChat()
        # sleep(2)
        landlord_nav_page.LandlordNavPage(self.driver).roommanager()
        sleep(2)

        po = landlord_read_page.LandlordReadPage(self.driver)
        po.read()
        sleep(2)
        function.insert_img(self.driver, "landlord_read.png")
Ejemplo n.º 2
0
    def test_roomauditrule(self):
        '''房间审核规范'''
        # login_page.LoginPage(self.driver).login()
        # sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).Iamlandlord()
        sleep(3)
        # landlord_nav_page.LandlordNavPage(self.driver).close_weiChat()
        # sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).roommanager()
        sleep(3)

        po = landlord_read_page.LandlordReadPage(self.driver)
        po.read()
        sleep(3)
        po.roomauditrule()
        function.insert_img(self.driver, "roomauditrule.png")
Ejemplo n.º 3
0
    def test_privacypolicy(self):
        '''隐私条款'''
        # login_page.LoginPage(self.driver).login()
        # sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).Iamlandlord()
        sleep(3)
        # landlord_nav_page.LandlordNavPage(self.driver).close_weiChat()
        # sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).roommanager()
        sleep(3)

        po = landlord_read_page.LandlordReadPage(self.driver)
        po.read()
        sleep(3)
        po.privacypolicy()
        print(po.privacypolicy_text())
        function.insert_img(self.driver, "privacypolicy.png")
Ejemplo n.º 4
0
    def test_disclaimer(self):
        '''免责声明'''
        # login_page.LoginPage(self.driver).login()
        # sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).Iamlandlord()
        sleep(3)
        # landlord_nav_page.LandlordNavPage(self.driver).close_weiChat()
        # sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).roommanager()
        sleep(3)

        po = landlord_read_page.LandlordReadPage(self.driver)
        po.read()
        sleep(3)
        po.disclaimer()
        print(po.disclaimer_text())
        function.insert_img(self.driver, "disclaimer.png")
Ejemplo n.º 5
0
    def test_agreement(self):
        '''服务协议'''
        login_page.LoginPage(self.driver).login()
        sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).Iamlandlord()
        sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).close_weiChat()
        sleep(3)
        landlord_nav_page.LandlordNavPage(self.driver).roommanager()
        sleep(3)

        po = landlord_read_page.LandlordReadPage(self.driver)
        po.read()
        sleep(3)
        po.agreement()
        print(po.agreement_text())
        sleep(2)
        function.insert_img(self.driver, "agreement.png")