IE popup ”Leave this page” on TruClient script
Question ID: 106471
1
0

We are receiving a popup from the IE browser that occurs only during playback of AJAX IE TruClient script using VuGen. This doesn't happen when user accesses the application manually, is there a way for the TruClient script to handle it?

Marked as spam
Posted by (Questions: 144, Answers: 1)
Asked on October 27, 2015 1:50 pm
440 views
Answers (1)
2
Private answer

This popup is called a window.OnBeforeUnload event, and is located in the application code. To enhance the script, to stop the popup ''Leave this page'' in TruClient, the following step needs to be added.

- Add to the TruClient Script an
''Evaluate JavaScript Code'' step as
soon as you open the window that
contains the event
window.OnBeforeUnload

- Add in the evaluate JavaScript code
the following
''window.onbeforeunload=null;''

Below is a web site that was found that gives an example of the window.OnBeforeUlload event with the sours code.

Does it occur on all websites?
If not, this pop-up window should be designed by the website developer.
Here is a website for trial, click it.
http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/onbeforeunload.htm
Perform and let me know.

Pasted from

Marked as spam
Posted by (Questions: 0, Answers: 152)
Answered on October 27, 2015 1:54 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top