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
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…
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.