code: def hover_on_element(driver, selector, by=By.CSS_SELECTOR):
      
      element = driver.find_element(by=by, value=selector)
      hover = ActionChains(driver).move_to_element(element)
      hover.perform()
docs: Fires the hover event for the specified element by the given selector.
      @Params
      driver - the webdriver object (required)
      selector - the locator (css selector) that is used (required)
      by - the method to search for the locator (Default: By.CSS_SELECTOR)