예제 #1
0
    def test_common_show_all_city(self):
        """
        查看全部城市
        :return:
        """
        rlpage = RentListPage(self.driver)
        ele = rlpage.get_city_name()
        rlpage.move_to_element(ele)
        rlpage.sleep(2)

        hot_name = rlpage.get_all_city()
        try:
            assert u"热门城市" in hot_name.text
            print ('Test Pass.')
        except Exception as e:
            print ("Test Fail.", format(e))
            raise e
예제 #2
0
    def test_common_show_service(self):
        """
        鼠标滑动联系方式,悬浮显示内容
        :return:
        """
        rlpage = RentListPage(self.driver)
        ele = rlpage.get_service()
        rlpage.move_to_element(ele)

        if(False == rlpage.is_show_wxpic()):
            print ("Test Failed.- no weixin pic ")
        elif (False == rlpage.is_show_hotline()):
            print ("Test Failed.- no person hotline ")
        elif (False == rlpage.is_show_zsbhotline()):
            print ("Test Failed.- no zsb hotline ")
        else:
            print ("Test Pass.")