def _validate_page(self, driver): try: print("Homepage02-validate") driver.\ find_element_by_class_name(self._home_page_slideshow_locator) except: raise InvalidPageException("Home Page not loaded")
def _validate_page(self, driver): list_tab = self.tab_selector.find_element_by_id(self._list_tab_locator) list_tab.click() try: WebDriverWait(driver, 5).until(expected_conditions.title_is(self._lists_page_title)) except: raise InvalidPageException("Lists Page not loaded")
def _validate_page(self, driver): try: WebDriverWait(driver, 5).until( expected_conditions.title_contains( self._template_query_page_title)) except: raise InvalidPageException("Template Query Page not loaded")
def _validate_page(self, driver): if 'Search results for' not in driver.title: raise InvalidPageException('Search results not loaded')
def _validate_page(self, driver): try: driver.find_element_by_css_selector(self._product_view_locator) except: raise InvalidPageException('Product page not loaded')
def _validate_page(self, driver): try: WebDriverWait(driver, 5).\ until(EC.presence_of_element_located((By.CLASS_NAME, self._results_locator))) except: raise InvalidPageException('Search results not loaded')
def _validate_page(self, driver): try: WebDriverWait(driver, 5).until( expected_conditions.title_is(self._query_results_page_title)) except: raise InvalidPageException("Query Results Page not loaded")