IE 11. Element receives click but nothing happens

I need to run my test scripts in IE 11. (I have a lot of problems with IE in general) but I cant seem to figure out this one:

When a button is clicked a new page (with search results) should open. The test-case passes and it appears that the element receives the click but nothing happens. It is stuck on the previous page

Here are some of the methods I have tried:

  • Straight forward
  • WebUI.sendKeys()
  • Click using JS. (Referring to previous posts on this forum, and Katalon documentation)
  • WebUI.mouseOver() before clicking.

None of these seem to do the trick. Other things I have done:
-Followed Katalon guide to run tests in IE.

  • Updated webdrivers

I do not get any errors / exceptions, so I wont be able to show this.

Do anyone have some other suggestions. Anything is appreciated!

Any input on this is appreciated!

@alexander_t Sorry this got missed the first time.

Try WebUI.enhancedClick()

If that doesn’t work, show me the code you used when you tried to use JavaScript. I think I will also need to see the relevant HTML to be sure the correct element is being targeted.

I will give that a try and get back to you

Unfortunately did not WebUI.enhancedClick() work.

When using JavaScript I have done the following:
Defined this custom keyword:

static void jsClick(TestObject to) {

	WebDriver driver = DriverFactory.getWebDriver();
	WebElement elm = WebUiCommonHelper.findWebElement(to, 20)

	JavascriptExecutor jsExecutor = (JavascriptExecutor)driver;
	jsExecutor.executeScript("arguments[0].click();", elm,);

Calling the method in my Test- Case:

The testobject is created using this custom keyword:

	static TestObject showResult (){
		String xpath = "//span[text() = 'Results']"
		TestObject to = new TestObject().addProperty("xpath", ConditionType.EQUALS, xpath)
		return to

I am certain the test object refers to the correct HTML - element

Please don’t make me send the boys round…

This is the html tag I am targeting :slightly_smiling_face:

Oh yeah, those annoying span tags. Always causing trouble for people trying to do an honest day’s work in the testing lab. I blame the developers… soon as they see IE11 they sprinkle span tags all over the code just to screw things up and piss off the testing guy. And when you try to take a screenshot of them you only see one because they hide everything else from view.

or something.

See ya.

1 Like