# coding=utf-8import timeimport unittestfrom appium.webdriver.common.mobileby import MobileByfrom common.base import Case_actionfrom time import sleepfrom page.main_pages import MainPagefrom elementlocator import main_ele, route_plan, search_info, search_info_food, search_bus_subway, theme, welcomefrom utils.logger import logclass MyTestCase(Case_action): # def setUp(self): # log.info('开始启动App') # # Case_action.setUp(self) # # log.info('App已经启动') # self.hp = MainPage() # 创建页面对象类型的对象(实例化) def test_1(self): self.hp = MainPage(self.driver) self.hp.in_main() self.hp.search_find('美食')