import time

from selenium.webdriver.common.by import By

from homework_zfh.test_frame.BasePage import BasePage


class SearchPage(BasePage):
    def search(self):
        self.send((By.XPATH,"//*[@resource-id='com.xueqiu.android:id/search_input_text']"), "alibaba")
        time.sleep(3)
        self.find_and_click((By.XPATH,"//*[@text='阿里巴巴-SW']"))
        return self.find((By.XPATH, "//*[@text='阿里巴巴-SW']")).text

