Click does not work in IE Internet Explorer

3,799 views
Skip to first unread message

Ali

unread,
Jan 17, 2012, 12:35:44 PM1/17/12
to Selenium Users
Hi All,
I've just noticed, all test cases that use a click on a button of
search field fail for IE since last week. I think it's happened after
recent update of MS. It works fine using Chrome and Firefox.

Since testing on IE along with other browsers are important for us,
just wondering if anybody has a solution for this issue.

Remedios Villabert

unread,
Jan 17, 2012, 1:23:15 PM1/17/12
to Selenium Users
same thing happens to me. I am using Selenium RC (I tries 2.14 and
2.16) but click is really not working on IE9, but is working on
firefox and chrome. DO you also get this error?

Command execution failure. Please search the user group at
https://groups.google.com/forum/#!forum/selenium-users for error
details from the log window. The error message is: DOM Exception:
NOT_SUPPORTED_ERR (9)

mrstevegross

unread,
Jan 17, 2012, 3:36:43 PM1/17/12
to Selenium Users
Whenever there is a Windows update, it resets the protection/security
settings. You gotta go back and fix 'em after the update. Just to be
on the safe side, go through the standard ridiculous IE checklist:

* Zoom level must be set to 100% for AutoTest to work; to do so,
launch IE separately and hit Ctrl-0 (zero).
* Protected mode must be enabled for all zones (see Tools -> Options -
> Security).
* Developer mode must be disabled (F12 toggles this mode).

Remedios Villabert

unread,
Jan 17, 2012, 4:18:44 PM1/17/12
to Selenium Users
* Zoom level must be set to 100% for AutoTest to work; to do so,- Yes

* Protected mode must be enabled for all zones (see Tools -> Options -
> Security).- Yes (and all zones have the same security level, set to
meduim)

* Developer mode must be disabled (F12 toggles this mode).- Yes

But still click is not working on IE9, I am using win 2008 .

Jim Evans

unread,
Jan 18, 2012, 12:47:17 AM1/18/12
to Selenium Users
Help me understand what you feel is "ridiculous". Is it the required
configuration for the IE driver that leaves something to be desired?
Are you placing the responsibility for the "ridiculousness" of that
required configuration on the authors of the browser (in other words,
Microsoft), or on the authors of the IE driver? If the latter, I would
point out that patches to our all-volunteer project are gratefully
accepted.

On the other hand, if you're saying the browser manufacturers
sometimes make choices that make our lives difficult, you'll get no
argument from me whatsoever. :)

Warning: I've a bit of a rant ahead, so if you're interested only in
the technical discussion, you should probably quit reading now. Chalk
it up to sleep deprivation, since I've not slept in something on the
order of 40 hours.

I'm sure I'm reading far more into a single word in your post than you
actually intended, and please accept my apologies for doing so. I just
want to point out two things. First, that most of the time, the
developers on the Selenium team don't make design decisions without
thinking about them, and there's usually a good technical reason for
doing things the way we do.

Second, there are real individuals who contribute (volunteer, usually
unpaid) time and effort to this project, and some of us identify
strongly with the code we've contributed, so tread lightly before you
use judgemental words to describe a piece of code in the Selenium
project. I may be stupid, ignorant, or incompetent as a developer, but
I don't think you'd appreciate me characterizing you in those terms
directly, or indirectly by characterizing your code that way, even if
I thought your code was of poor quality. I'd like to be afforded the
same courtesy.

--Jim

On Jan 17, 3:36 pm, mrstevegross <mrstevegr...@gmail.com> wrote:

Rajmuthu

unread,
Jan 18, 2012, 11:47:33 AM1/18/12
to Selenium Users
Even I am facing the same issue. Click on Link or Button is not
working in IE 9.

I am going to use SendKeys("Enter") to see whether click is working in
IE.

- Raj

Arun Kumaresan

unread,
Jan 18, 2012, 2:36:16 PM1/18/12
to seleniu...@googlegroups.com
Hi,
Here is the work around I use to make the click work on IE9 and it has worked for me so far.
 
//Get the WebElement for the button
//Simulate the focus on the button by doing sendKeys("")
//wait for .5 seconds
// Click Enter button using Actions class
 
Here is the sample code below.
 
WebElement targetButton = driver.findElementById(<Element ID>)
targetButton.sendKeys("");
try {
 Thread.sleep(500);
} catch (InterruptedException e) {}
Actions userAction = new Actions(driver);
userAction.sendKeys(Keys.chord(Keys.ENTER)).perform();

Hope that works.

 
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--
Regards,
Arun Kumaresan

Mike Riley

unread,
Jan 19, 2012, 7:26:14 PM1/19/12
to Selenium Users
I would like to have people that are seeing this problem say what
version of Selenium they are using, which API within Selenium, and
which version of Internet Explorer, because I am seeing something like
this too.

I am using Selenium 2.14.0, using WebDriver with
WebDriverBackedSelenium, and I am seeing this problem with IE 8. IE 9
is working perfectly fine for me.

I am going to try other Selenium versions to see how they behave, but
I need to set up a test environment and that probably won't happen
until next week.

I have had one instance of a button that didn't work in all browsers
where using the Enter key method works, but I don't want to create a
hack where I do that for all my links and button. I am hoping we can
gather some data and see what is going wrong.

Mike

Rajmuthu

unread,
Jan 20, 2012, 4:50:37 AM1/20/12
to Selenium Users
Mike,

I am using Selenium Webdriver selenium-java-2.17.0.jar & 2.16, for
both of the API Click is not working in IE 8.

ex. Gmail login functionality. Works fine on Mozilla & Chrome, but not
on IE

- Raj

Remedios Villabert

unread,
Jan 20, 2012, 9:56:48 AM1/20/12
to Selenium Users
I tried all the SE RC version already (2.13, 2.14, 2.15, 2.16 and
2.17), all have the same click problem in IE. Is there a workarround
for HTMLSuite? I am new to selenium and I am just running the cross
browser testing using selenese (command line on java)
> > > > > * Developer mode must be disabled (F12 toggles this mode).- Hide quoted text -
>
> - Show quoted text -

Ukaru Nusashi

unread,
Mar 20, 2015, 3:32:56 AM3/20/15
to seleniu...@googlegroups.com
Somehow, I got my script working. where my I am using IEdriverserver.exe on IE11. The following script fixed my issue on clicking a button. Otherwise, it works just as it does on Firefox and Chrome.

   If driver.ToString.ToUpper.Contains("INTERNETEXPLORER") AndAlso by.ToString.Contains("button") Then
                            driver.FindElement(by).SendKeys(Keys.Enter)
                        Else
                            driver.FindElement(by).Click()
                        End If

AnonymousAB

unread,
Mar 27, 2015, 5:01:31 AM3/27/15
to seleniu...@googlegroups.com
Hello

If your script is working fine for firefox.You can just try 1 alternative.
There is a firefox  add on "IE Tab2" which just opens Your IE url in firefox.
You just have to download this add on in firefox and right click on page and select "View page in IE Tab"
It will open ur url inb firefox but with IE add on.
I hope it can help you locating the web elements.
Good Luck!!!

Thanks
AnonymousAB

Reply all
Reply to author
Forward
0 new messages