Beispiel #1
0
        def search_for_crash(self, crash_id_or_signature):
            '''
                Type the signature or the id of a bug into the search bar and submit the form
            '''
            search_box = self.selenium.find_element(*self._find_crash_id_or_signature)
            # explicitly only testing search and not the onfocus event which clears the
            # search field
            search_box.clear()
            search_box.send_keys(crash_id_or_signature)
            search_box.send_keys(Keys.RETURN)
            WebDriverWait(self.selenium, self.timeout).until(lambda s: not self.is_element_present(*self._loader_locator))

            from pages.super_search_page import CrashStatsSuperSearch
            return CrashStatsSuperSearch(self.testsetup)
Beispiel #2
0
 def click_super_search(self):
     self.selenium.find_element(*self._super_search_locator).click()
     from pages.super_search_page import CrashStatsSuperSearch
     return CrashStatsSuperSearch(self.testsetup)
Beispiel #3
0
 def click_super_search(self):
     self.find_element(*self._super_search_locator).click()
     from pages.super_search_page import CrashStatsSuperSearch
     return CrashStatsSuperSearch(
         self.selenium, self.page.base_url).wait_for_page_to_load()