Can't click on one link in IE 11

Thanks! I tried with below after editing format :

WebUI.waitForElementVisible(findTestObject(‘Object Repository/Page_/a_Change Password’),10)
WebUI.waitForElementClickable(findTestObject(‘Object Repository/Page_/a_Change Password’),10)‘Object Repository/Page_/a_Change Password’))

but it still does not click the Change Password link and it goes to next line below, logs off‘Object Repository/Page_/a_Logoff’))

Totally appreciate your help!

Are you certain? What happens if you delete the logoff line?

Tried many many times and now, commented out and tried. It does nothing. it does not click that link

//‘Object Repository/Page_/a_Logoff’))


Okay, so now we have to suspect there’s something wrong with your Test Object 'Object Repository/Page_/a_Change Password'

Show me how it’s defined in the OR.

And a screenshot of the inspector might be useful, too.

Thanks a ton for looking into it!
I recorded using katalon recorder and didn’t edit object repository for any of the links ( incl log off which works)

What document mode is IE using?

It is set to 11

Something is wrong somewhere…

I’d like to see a screenshot of the inspector showing that element and the console claiming it’s a null reference when you try to click it.

When I click the Change Password on the web page manually - it works but not if I type :
document.getElementById(‘lnkLogoff’).click in console and press the green arrow button

Sorry, Tina, my bad. The element is in an IFrame – I completely missed that. None of the last half dozen or so tests are meaningful.

ok, np! learned something new how to test…

1 Like

Just realized that my format for WebUI.clickOffset(‘Object Repository/Page_/a_Change Password’, 5, 5) was
wrong. the last two are co-ordinates i.e 5,5. How do I find co-ordinates of Change Password on the web page?

will retry replacing click with clickOffset if i can get co-ordinates to work…

I used below before:‘Object Repository/Page_/a_Change Password’))

I have no experience working with the offset API.

But try this:


Hopefully, that will click the link.

Two ways:

  1. You have a definition for it in your test object properties (you posted it earlier).

  2. Start from scratch, post your HTML showing the iframe and we’ll dig out a reference/selector that works.

Aside: I’m going to tidy up this thread by deleting all that erroneous crapola I posted earlier.

I need to see the line in the HTML that says <iframe ...>

looks like it is a frame and not iframe…does that make a difference?
I tried it again with the frame name but get the same error.

frame/iframe, whatever. Please show it to me.

Tina, I need you to show me the frame in which <a class="MenuLink" id="lnkChangePassword" ...> resides. Showing me another frame (“MainFrame”) does not help.

I’m detecting you are unwilling or extremely reserved about posting your site’s HTML. If you have security concerns, don’t post any URLs and blank out any sensitive info. I can’t help you without seeing your code (test code, HTML code, etc.).

Assuming you don’t want to post any more info, the following is the general solution to the problem as it stands right now:


Once you have proved that works from the browser console, use WebUI.executeJavaScript to issue your click on that element using that same piece of JavaScript.

Works now! my bad, I mentioned the wrong iframe! used the correct one and i can run it by executing javascript! thanks a ton!

1 Like