def gotoSearch(self): searchElement = ( By.XPATH, "//*[contains(@resource-id, 'app_bar')]//*[contains(@class, 'android.widget.TextView')]" ) self.find(searchElement).click() return SearchPage()
def goto_search(self) -> SearchPage: self.find(self._search_button).click() return SearchPage()
def gotoSearch(self): search_box = (By.ID, "home_search") self.find(search_box).click() return SearchPage()
def search(self, keyword): self.driver.find_element_by_name("q").send_keys(keyword) self.driver.find_element_by_css_selector('.nav_search button').click() return SearchPage(self.driver)
def gotoSearch(self) -> SearchPage: # self.find(self._search_button).click() # return SearchPage() self.load_yaml(MainPage.data_path, "gotoSearch") return SearchPage()