def go_to_url(self, url): # The URL bar shown is actually in the system app not in this Search app. # We switch back to the system app, then tap the panel, but this will only # work from Search app which embiggens the input bar self.marionette.switch_to_frame() if self.is_element_present(*self._url_bar_locator): self.marionette.find_element(*self._url_bar_locator).tap() else: self._url_bar_locator = (By.CSS_SELECTOR, '.urlbar .title') self._root_element = self.marionette.find_element(*self._browser_app_locator) self._root_element.find_element(*self._url_bar_locator).tap() from gaiatest.apps.system.regions.search_panel import SearchPanel search_panel = SearchPanel(self.marionette) return search_panel.go_to_url(url)
def go_to_url(self, url): # The URL bar shown is actually in the system app not in this Search app. # We switch back to the system app, then tap the panel, but this will only # work from Search app which embiggens the input bar self.marionette.switch_to_frame() if self.is_element_present(*self._url_bar_locator): self.marionette.find_element(*self._url_bar_locator).tap() else: self._url_bar_locator = (By.CSS_SELECTOR, '.urlbar .title') self._root_element = self.marionette.find_element( *self._browser_app_locator) self._root_element.find_element(*self._url_bar_locator).tap() from gaiatest.apps.system.regions.search_panel import SearchPanel search_panel = SearchPanel(self.marionette) return search_panel.go_to_url(url)
def go_to_url(self, url): self._root_element.find_element(*self._url_bar_locator).tap() from gaiatest.apps.system.regions.search_panel import SearchPanel search_panel = SearchPanel(self.marionette) return search_panel.go_to_url(url)
def tap_search_bar(self): self.marionette.switch_to_frame() self.marionette.find_element(*self._search_bar_locator).tap() from gaiatest.apps.system.regions.search_panel import SearchPanel return SearchPanel(self.marionette)