Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Native clicks do not work properly in Internet Explorer #4403

@lukeis

Description

@lukeis

Originally reported on Google Code with ID 4403

Sometimes click does not work in IE with enabled native events. Consider the following
code:

System.setProperty("webdriver.ie.driver", "<path_to_iedriverserver>");
DesiredCapabilities d = DesiredCapabilities.internetExplorer();
//d.setCapability("nativeEvents", false);
webdriver = new InternetExplorerDriver(d);
webdriver.get("http://google.co.uk");
webdriver.findElement(By.linkText("Images")).click();
webdriver.findElement(By.linkText("Search")).click();

This script usually clicks "Images" link successfully, but in some cases it fails to
click "Search" afterwards. It is not a synchronization issue, the same stuff happens
when there is a, say, Thread.sleep() between the clicks. Moreover, if script is stopped
at the breakpoint after this code and user tries to click links manually, it does not
work either, but URLs keep flashing in the IE status bar as if some click event was
not completely handled. When IEDriverServer.exe process is killed, this browser window
becomes responsive again. 

Interestingly, if d.setCapability("nativeEvents", false) is uncommented, everything
works as expected.

Selenium version: 2.25.0
OS: WinXP
Browser: IE 8, IEDriverServer 2.25.3 (x32), browser mode = IE8, document mode = IE8
Standards

Reported by nebehr.gudahtt on 2012-08-13 08:26:21

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions