Absent Member.. SzymonJanowski Absent Member..
Absent Member..
283 views

LR 12.01 TruClient IE OnUnLoad prompt not handled

Hi,

 

I am trying to make the TC IE script to navigate out of a frame which triggers a 'Message from webpage' dialog. Standard Object functions cannot handle it properly (Button definition is limited to "OK" and "Cancel"), so I've tried to evaluate JS:

 

"javascript&colon;window.onbeforeunload=null;document.body.onbeforeunload=null;window.onunload=null;document.body.onunload=null;window.onblur=null;document.body.onblur=null;window.onkeypress=null;window.onkeyup=null;document.body.onkeypress=null;document.body.onkeyup=null;document.body.innerHTML='<body>Try%20closing%20now.</body>';document.getElementsByTagName('head')[0].outerHTML='<head></head>';void 0;"

 

Any suggestions?

0 Likes
4 Replies
andreyr Absent Member.
Absent Member.

Re: LR 12.01 TruClient IE OnUnLoad prompt not handled

Hi, 

 

Can you please share the screenshot of the pop up message? 

Did you try selecting Xpath option in this step?

 

 

Thanks

0 Likes
Absent Member.. SzymonJanowski Absent Member..
Absent Member..

Re: LR 12.01 TruClient IE OnUnLoad prompt not handled

I've attached the printscreen to this message.

 

Could you elaborate on the Xpath? It's not available in the toolbox.

0 Likes
Shlomi Nissim Acclaimed Contributor.
Acclaimed Contributor.

Re: LR 12.01 TruClient IE OnUnLoad prompt not handled

If I am not mistaken XPath is irrelevant in this case

 

Try adding a Generic browser action step to click on confirm dialog. If it does not work I suggest you to open a ticket.

 

Good luck

Shlomi

0 Likes
Absent Member.. SzymonJanowski Absent Member..
Absent Member..

Re: LR 12.01 TruClient IE OnUnLoad prompt not handled

Generic Object action for Confirm Dialog can action on a OK or Cancel values only. Thus, it does not work for me.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.