from selenium.webdriver.common.by import By

from homework_zfh.test_frame.BasePage import BasePage
from homework_zfh.test_frame.page.search_page import SearchPage


class MarketPage(BasePage):
    def goto_search(self):
        self.find_and_click((By.XPATH,"//*[@resource-id='com.xueqiu.android:id/action_search']"))
        return SearchPage(self.driver)