svarog99
10 years agoNew Contributor
"Windows Security" dialog not recognized during playback
I am a new user and I apologize if this has come up before.
I am attempting to record Jscript as I log into a website (the name of the website is changed for this example).
1. In IE 8, navigate to www.test.com.
2. "Windows Security" pop-up appears and I enter my credentials.
3. I am logged into the website.
4. I close the browser window.
All of these steps are recorded, including my username and password. The Windows Security dialog is recognized during the recording. But when I play it back, the Windows Security dialog is never recognized. It hangs on "Navigating to www.test.com".
I found one other thread where the following advice is given: "I successfully expose Windows Security dialogs after adding the "DirectUIHWND" class name to the list of accepted windows on my Windows 7 system."
I performed these steps, but this did not resolve the problem. In fact now I am seeing a recorded function that does not include my username and password, so I think it was a step in the wrong direction.
Thanks in advance for any help.
I am attempting to record Jscript as I log into a website (the name of the website is changed for this example).
1. In IE 8, navigate to www.test.com.
2. "Windows Security" pop-up appears and I enter my credentials.
3. I am logged into the website.
4. I close the browser window.
All of these steps are recorded, including my username and password. The Windows Security dialog is recognized during the recording. But when I play it back, the Windows Security dialog is never recognized. It hangs on "Navigating to www.test.com".
I found one other thread where the following advice is given: "I successfully expose Windows Security dialogs after adding the "DirectUIHWND" class name to the list of accepted windows on my Windows 7 system."
I performed these steps, but this did not resolve the problem. In fact now I am seeing a recorded function that does not include my username and password, so I think it was a step in the wrong direction.
Thanks in advance for any help.
The test gets stuck, because it waits for the page to load completely before entering the credentials. But the page finishes loading only after it receives the credentials - which results in a lock.
To avoid the issue, you need to navigate to the page without waiting for it to load. For example, replace this line:Browsers.Items(btIExplorer).Run("http://www.test.com");
with these:
var browserInfo = Browsers.Item(btIExplorer); browserInfo.RunOptions = "http://www.test.com"; // your URL browserInfo.Run();