Cannot figure out python selenium webdriver move_to_element functionality Cannot figure out python selenium webdriver move_to_element functionality selenium selenium

Cannot figure out python selenium webdriver move_to_element functionality


The first argument to ActionChains is the driver instance you use to control the browser, ie browser in this case. Try the following:

menu = browser.find_element_by_xpath("//nav/ul/li/a[@href='#'][.='Profile']")hover = ActionChains(browser).move_to_element(menu)hover.perform()