(I've looked at many other similar posts on SO and have unfortunately not been able to solve this problem, so here goes...)
I'm using Selenium WebDriver (C# implementation, version 2.15) to drive a fairly simple webpage. The page contains a form with two < input >'s for username and password, and one < input > for submitting the form. I can successfully enter values for username and password, but the Click() call on the submit button appears to have no effect.
Per other recommendations, I have tried the following tricks, none of which has worked:
- Change window focus to currentWindowHandle
- Click on the element's parent, then on the element
- Add a long implicit wait
- Add a long explicit wait (by sleeping 20 seconds)
- Click a whole bunch of times on the element
- Use Submit() instead of Click()
- Send the keys "\n" to the element (Selenium reports this as an error)
Note that I have verified that the < input > button is indeed successfully found, so that doesn't seem to be a problem.
Also, note that I have verified the button does indeed work outside of Selenium-land. That is, I can browse to the site, enter login credentials, and click the submit button (and it works!).
Also, note that this problem is on IE. It does not occur for me with Chrome and FF7.
So that said, does anyone have any other ideas?