def __init__(self, webd_wrap): base_page_object.__init__(self, webd_wrap) _element = self._driver.find_element_by_id("h-shop-by-category").find_element_by_xpath("h2/a") _hov = ActionChains(self._driver).move_to_element(_element) _hov.perform() _categories_html = self._driver.find_element_by_id('shop-categories').find_elements_by_xpath('div/ul/li/a') self._categories = [] for elt in _categories_html: self._categories.append(elt.text)
def __init__(self, webd_wrap): base_page_object.__init__(self, webd_wrap)