Esempio n. 1
0
 def gotoSearch(self):
     searchElement = (
         By.XPATH,
         "//*[contains(@resource-id, 'app_bar')]//*[contains(@class, 'android.widget.TextView')]"
     )
     self.find(searchElement).click()
     return SearchPage()
Esempio n. 2
0
 def goto_search(self) -> SearchPage:
     self.find(self._search_button).click()
     return SearchPage()
Esempio n. 3
0
 def gotoSearch(self):
     search_box = (By.ID, "home_search")
     self.find(search_box).click()
     return SearchPage()
Esempio n. 4
0
 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)
Esempio n. 5
0
 def gotoSearch(self) -> SearchPage:
     # self.find(self._search_button).click()
     # return SearchPage()
     self.load_yaml(MainPage.data_path, "gotoSearch")
     return SearchPage()