Monday, October 3, 2011

Clicking Elements in IE with Selenium

Short, rough post, just to add another node on the net explaining this horrible bug.

  • You are using Selenium.

  • You wrote a beautiful test, and it works great in FF with the FirefoxDriver.

  • You adapted the test to run with InternetExplorerDriver.

  • You run it and it doesn't click.

You will google around, and most suggestions will tell you to call:
sendKeys("\n");
on the element.

That might work for you. It might not.

It didn't work for me.

What did work was going to the View menu and then to the Zoom menu, and there changing the zoom value from 125% to 100%.

Terrible bug. Hopefully this can help save a few hours of humankind.

Thank you Brian Elstner for figuring this out, and for taking the time to post it here.