You can find the xpath of an element by going to Chrome -> Right click Element -> Inspect -> Right click HTML -> Copy -> Copy XPATH
I would solve it like this:
def inspectElementMoveMouse():
element = driver.find_element_by_xpath('/html/body/header/div/div[1]/a[2]/span')
print('MovingMouse')
ActionChains(driver).move_to_element(element)
element.perform()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…