from appium.webdriver.common.mobileby import MobileBy

from app.page.base_page import BasePage



class MainPage(BasePage):

    def goto_contact_menu_page(self):

        # 首页，点击通讯录进入通讯录列表界面
        self.find(MobileBy.XPATH,'//*[@text="通讯录"]').click()
        from app.page.contact_list_page import ContactList
        return ContactList(self.driver)