from selenium.webdriver.common.by import By

from homework_zfh.test_frame.BasePage import BasePage
from homework_zfh.test_frame.page.market_page import MarketPage


class MainPage(BasePage):
    def goto_market(self):
        self.find_and_click((By.XPATH,"//*[@text='行情']"))
        return MarketPage(self.driver)
