def open_hover(self, locator, params=None, use_js=False):
        """
        Open a hover or popover.

        :param locator: locator tuple or WebElement instance
        :param params: (optional) locator parameters
        :param use_js: use javascript to open hover
        :return: element hovered
        """
        element = locator
        if not isinstance(element, WebElement):
            element = self.get_visible_element(locator, params)

        if use_js:
            self._js_hover('mouseover', element)
            return element
        actions = ActionChains(self.driver)
        actions.move_to_element(element).perform()
        actions.reset_actions()
        return element
def open_hover ( self , locator , params = None , use_js = False ) : element = locator if not isinstance ( element , WebElement ) : element = self . get_visible_element ( locator , params ) if use_js : self . _js_hover ( 'mouseover' , element ) return element actions = ActionChains ( self . driver ) actions . move_to_element ( element ) . perform ( ) actions . reset_actions ( ) return element
Open a hover or popover.

        :param locator: locator tuple or WebElement instance
        :param params: (optional) locator parameters
        :param use_js: use javascript to open hover
        :return: element hovered