how to handle Windows security dialog - internet-explorer-8

Hi we have a authentication page that authenticates users. Recently our org performed some improvements to reduce the login prompts. Now when i use internet explorer i see a dialogbox to enter username/password. If i click ESC key then i can navigate to our authentication page. I am using remote web driver. I did try below things.
org.openqa.selenium.interactions.Actions actions = new org.openqa.selenium.interactions.Actions(context.getWebDriver());
actions.sendKeys(Keys.ESCAPE);
context.getWebDriver().switchTo().alert().dismiss()
None worked. "Windows Security" dialog box stays. Can anyone point me how to dismiss this dialog on internet explorer.
Thanks
Shankar KC

Related

How to add a button to Win Logon Screen

for my enterprise we would want to add a button to the initial windows Logon Screen (or a simple link) that would open a the browser to a specific url we used to reset password using a dedicated web apps.
We pushed a similar solution by CISCO (CISCO GINA) a few time ago.
But it is unclear for me GINA is deprecated in Win10 and Credential Provider seem to change the Logon method not simply to add a button
Can someone highlight me ? Point me to an article or an example ?
Thanks a lot
Ps : i checked this article C++ Windows Credential Provider Progress Screen but it seem really to chaneg the whole Login Screen i just want to add a button on the bottom right next to the windows existing button for Wifi, UI customisation , Language

How to go back to the Windows Phone app page after hiding the windows phone browser user control?

I have developed a windows phone user control which has only Browser control in it's grid.
I am navigating to this Browser control from my main page of app upon clicking a button. This browser control load Facebook authentication page.After posting the message to facebook , I want to go back to my main app .
For this I tried to hide the Browser control and i have set visibility to collapsed,and it shows a blank screen.
Any help on how can I go back to the main app which has called this browser control and maintain the same state as before ?
The following code works...
(Application.Current.RootVisual as PhoneApplicationFrame).GoBack()

Sending Keystrokes to selenium RC to press continue button in a security warning dialog box

How to send key strokes like Enter or Space to Selenium RC to click on the Continue button of the security warning dialog box in Firefox?
Although this page is encrypted, the information you have entered is
to be sent over an unencrypted connection and could easily be read by
a third party.
Or if there is any other way to click on the Continue button, that would also be fine.
You can't, at least not with just Selenium RC. The usual answer for Windows environments is to use AutoIt.
Here's an alternative solution, not sure if it would be useful for you:
Instead of trying to click on the OK button on the dialog, it may be easier to prevent it appearing by changing settings on your firefox to tell it not to display that specific warning. I think the settings for that could be accessed by typing about:config in the address bar of your firefox, and then typing security.warn in field filter. The one you're looking for is probably one of them!

IE: When clicking Google +1 a new window opens and then tries to close again

I have recently introduced some Google +1 buttons to my site.
I am calling the button like this:
<g:plusone size="small"
count="false"
callback="plusone_vote"
href='http://www.mysite.com'>
</g:plusone>
The plusone_vote callback is a js function which pushes a tracking event to Google Analytics.
This works for the majority of users. However, a small number are getting an issue. When they click on the +1 link a new IE window appears and then displays the message
"The webpage you're viewing is trying to close this window.
Do you want to close this window?"
If the user clicks "No" they get they Google +1 privacy page ("I'm fine with Google using my +1's and other info around content and ads on non-Google websites"). They can then click the "Share my +1's button" and the window closes. However, they "+1" action never appears to happen. The button does not turn blue and the page does not show up in their profile.
The users were all using IE8 or IE9 on Windows 7 - a combination which works fine for most users. The only thing that appears to be the same is that they all use the same type of laptop - I'm struggling to see the significance of that though.
Any ideas?
The actual issue is with your IE security settings: the page MUST be displayed as a regular 'internet' webpage in order for IE to correctly run the +1 and Facebook Like plugins without this error message.
In order to fix this:
Go into Internet Options in the IE menu
Go to Security Settings. Click on 'local intranet'.
Click on sites. Make sure 'detect local intranet' and all it's sub checkboxes are unchecked. Go into 'advanced' and make sure your webpage's domain is not listed. Close this window.
Now, click on 'Trusted Sites' and then 'Sites'. Make sure to remove your site's domain if it's listed.
All sites which are not 'Intranet' or a 'Trusted Site' default to public internet settings, which is the same as what your users will see (unless you're writing a business application which runs for internal network users, I suppose). This should fix this pop up, and allow +1 and Facebook like plugins to function correctly.

Outlook error: “A dialogue box is open. Close it and try it again.”

When trying to open Outlook 2007 on Windows Server 2003, I get this error message:
“A dialogue box is open. Close it and try it again.”
I try and open Outlook in safe mode by using outlook /safe (in the Run command) and it works fine after it says configuring outlook accounts "Please enter your full name and initials below" (the full name and intials fields are already prefilled) and I click the OK button on the same and I answer the RSS Feeds subscription as either Yes or No.
Once I try closing and reopening Outlook, again I see the same error message as “A dialogue box is open. Close it and try it again.”
This does not let me open any new window to send emails. How can I fix whatever is causing this error?
It could possibly be due to an add-in that is acting up. Try to determine which add-in it is by disabling them one by one until it is identified. To disable an add-in, go to the Tools menu, click Trust Center, and then click Add-ins. A list of add-ins are listed. For each Type of add-in you see, choose them in the Manage listbox at the bottem and click Go. Uncheck the add-in to disable it.
Try using Task Manager to end any other Outlook processes, then try opening it again. Your problem could be due to a non-responsive Outlook process, or a background one.
Good luck!
Do you happen to use a virtual window manager (like virtuawin or bbbLean)? If so, you may not see the modal dialog box as it is in another virtual window and Outlook will not accept any input. It happens to me often and at first I was frustrated that Outlook 'hangs' frequently and is not a robust app. For me it was dialog box that said something like "Do you want to auto-archive the folder?".
The dialog box may also be hidden behind the main window. You can try using Alt-TAB to cycle through you windows and you should see the dialog box.
This was caused by a windows update on windows 2003 server.
I did a system restore to an earlier point and it worked fine. Thanks for the support.

Resources