title: Selenium will NOT click button
body: <p>I'm trying to scrape data from this web page...
  "<a href="http://agmarknet.nic.in/mark2_new.asp" rel="nofollow">http://agmarknet.nic.in/mark2_new.asp</a>"</p>
  
  <p>I need to type in "banana" in the commodity search and click the "Go" button. </p>
  
  <p>With the help of Stack Overflow, I'm able to bring up Firefox, type in "Banana"...but the "Go" button (Go3 based on the inspection) WILL NOT FIRE!!</p>
  
  <p>I've tried element.click(), I've tried ActionChains, I've tried moving the cursor to the element, I've verified it's enabled. It just will not go to the next search page. </p>
  
  <p>The OTHER search button (B1...which is a generic search) sort of works...except that when selenium clicks it, it brings up a different page than when I click it manually...so that's weird too.</p>
  
  <p>I DON'T get any errors...it just does not go to the next page. </p>
  
  <p>Thanks in advance for any help you can offer. It's driving me crazy!</p>
  
  <pre><code>def SLEEP(num):
      for i in range(0,num,1):
          print ".",
          time.sleep(1)
  
  def click_button(driver, button_name):
      assert driver.find_element_by_name(button_name)
      button = driver.find_element_by_name(button_name)
  
      if button.is_enabled():
          print "it is enabled"
      else:
          print "IT IS NOT ENABLED"
  
      # Try with element
      button.click()
      #Try with action chain
      action = ActionChains(driver)
      action.move_to_element(driver.find_element_by_name(button_name))
      action.click(driver.find_element_by_name(button_name))
      action.perform()
  
  # WORKS
  driver = webdriver.Firefox()
  driver.get("http://agmarknet.nic.in/mark2_new.asp")
  SLEEP(5)
  assert "AG" in driver.title
  print driver.title
  
  # WORKS
  textinput = driver.find_element_by_name('cmm')
  textinput.send_keys("banana")
  SLEEP(5)
  
  # SORT OF WORKS (brings up unexpected page)
  button_name = "B1"
  click_button(driver, button_name)
  
  # DOES NOT WORK
  button_name = "Go3"
  click_button(driver, button_name)
  </code></pre>