def hover_on_element(driver, selector, by=By.CSS_SELECTOR):
element = driver.find_element(by=by, value=selector)<EOL>hover = ActionChains(driver).move_to_element(element)<EOL>hover.perform()<EOL>
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)