I am using javascript executer to perform click event as normal click event is not working on my application even though test case is passed saying katalon has clicked on the object but it’s not clicked.
Browser: IE11
WebElement element = WebUiCommonHelper.findWebElement(obj,30)
from the above code, I am able to click on the button, but whenever the new window gets displayed on clicking button (on a same page) the execution stops at WebUI.executeJavaScript(“arguments[0].click()”, Arrays.asList(element)) and nothing happens. So please anyone have any idea how to deal with this.
When this kind of thing fails silently, it’s usually because you are not clicking on the element you were expecting (most importantly for javascript, the element that triggers an event).
Can you share an HTML snippet of the target element as well as parent elements?
In case @Brandon_Hein’s hypothesis is invalidated, you can try this solution.
I did some quick google and found that this bug was reported by people in Selenium, particularly on IE 11. A possible workaround is to insert this line before the click: