title: mouse over operation in python selenium
body: <p>I am trying to perform mouse over operation in <code>python</code> <code>selenium</code> binding, but I am getting error while using <code>ActionChains.perform()</code></p>
  
  <p>I have tried this </p>
  
  <pre><code>def test_mouse_over():
  
      driver =webdriver.Firefox()
      driver.get("https://www.flipkart.com/")
  
      actions = ActionChains(driver)
      val1 = driver.find_element_by_xpath('//span[text()="Men"]')
      actions.move_to_element(val1)
      val2 = driver.find_element_by_xpath('//span[text()="Shirts"]')
      actions.click(val2)
      actions.perform()
  </code></pre>
  
  <p>I am getting error at last line <code>actions.perform()</code></p>