Close a browser window without receiving the "Do you want to close this window" prompt - vba

How can I handle a browser window without receiving the "Do you want to close this window prompt?"
Actually ie Window close while click on OK button, but i'm getting this prompt message
kindly help me to how to solve this. i don't want this prompt message while click on OK button.
ie.navigate Mod_Url
ie.Document.getElementsByTagName("button").Item(1).Click

I think what you are browsing should be an http website instead of https.
If you are sure that this website is safe, you can try to modify the security settings:
IE tools -> Internet options -> Security -> Trusted sites -> Sites -> Uncheck option Require server verification (https:) for all sites in this zone
Adding http://xx.xxx.com(the website url you accessed) to trust site list.

Related

I accidentally block request URL in safari developer tools. How to unblock?

This is what happens when I open developer tools accessing the blocked URL:
I can't right-click -> unblock on the URL in the network tab because it's not listed there.
How to unblock it?
Thanks.

Bypass SSL Cert check in VB.net webbrowser

I hope you can help me. I searched the whole internet, found loads of different tips and steps of how to do it and nothing works for me.
I build a simple application which has Webbrowser1 embedded. Soon I found that many websites does not display correctly so I found that a regsitry key can be tweeked to make the application to use IE11.
Now I have the issue with HTTPS:// self signed certifcation.
Basically in my Apllication the website displays:
In IE11 browser I get the
Basically if the "go on to the webpage (not recommended)" was in my app I would not have a problem. But instead I have the "Error Code:0".
I tried bypassing this in IE11 internet options > advanced > security
I tried adding the website I am interested to open inside Trusted Sites
I tried to follow steps on the interent for IE11 to simply bypass this security feature
I tried looking for the way to bypass this on VB using
ServicePointManager.ServerCertificateValidationCallback =
New RemoteCertificateValidationCallback(Function() True)
The above line maybe works, but I don't know how to utilize it.
To summarize;
I have webbrowser1, textbox1, button1. When I click on button1 it does webbrowser1.navigate(textbox1.text). It works on every website like a harm except the https with expired certs etc.
What do I need to do to have the possibility to display those https websites?

Clear session cookies in ie11?

in previous versions of IE the F12 dev tools had several option for cache and cookie management, but in the new IE 11 version (on the network tab) the option to clear / delete session cookies seems to be missing, does anyone know where to find it, (or how to accomplish this)
ps- no, "close IE and restart" is not a solution
There's a Clear Cookies for Domain button at the top center of the Network tab in the remodeled F12 tools.
To clear ALL session cookies, in the address bar, type:
javascript:document.execCommand("ClearAuthenticationCache")
and hit enter. Note that you must type this command yourself; if you copy/paste it, IE will delete the javascript: at the front of the string for security reasons.
Press F12 to open Developer Tools, go to Console tab, enter this Javascript command
document.execCommand("ClearAuthenticationCache")
I tried and saw that typing in address bar won't work.

ios: How to display "choose wireless connection" popup?

If there is no internet connection and you start for example the safari app with Ipad or Iphone, a popup appears saying: "Choose wireless network"
Is there a way to force this popup to show up in my app when I want to?
The problem is, I have a button in my app which connects the user to facebook. After pressing the button the safari browser opens and shows the facebook authorization page. If there is no internet connection this popup appears, but there is no way to turn back to the app from there. So currently I check internet connection before allowing this authorization page to appear, but I also want to show this popup.
It will show up automatically if your app tries to access internet-based resource and there's no wifi connection established but there is a wifi access point nearby.
This dialog appears automatically if you have "Application uses Wi-Fi" set to YES in your ...-Info.plist and if there is no connection.
This is not possible. The pop-up you have seen before is in Settings -> Wi-Fi -> Ask to Join Networks -> ON/OFF
Setting this to ON allows the OS to prompt the user to join a Wi-Fi network if it finds any in reach and you are not currently connected to one.
Apps cannot show this prompt, it's a system-level prompt.

Selenium - Handling modal (Child Browser) window in Microsoft Dynamics CRM

I am trying automate Microsoft Dynamics CRM application using Selenium RC, I am unable to handle the modal(child browser) windows. Every time Selenium clicks to open modal window ( selenium.selectWindow("windowName")) I am getting the following error.
There was an unexpected Alert! [A Microsoft Dynamics CRM window was
unable to open, and may have been blocked by a pop-up blocker. Please
add this Microsoft Dynamics CRM server to the list of sites your
pop-up blocker allows to open new windows:
As per the research I tried to add the sever site to trusted sites and also added the site to popup blocker allow list but no gains.
Please direct to me right way of handling it
For some reason Microsoft Dynamics CRM thinks it cannot open the popup window, so it wants to show an alert indicating that. Selenium sees the alert and since it is not expected (you didn't call getAlert()), so the next selenium action (which is selecting the window if I understand correctly) fails.
Maybe you need to wait for the window to actually appear before selecting it?
Check what happens if you set a breakpoint just before the selectWindow() and step through it.
Also try the same steps manually. Do they work?
Remember that selenium uses its own default profile for browsers, so your popup blocker settings may not get through. Which browser is this?
What you can do is accept the popups in the Internet Security, and un-mark the Browse in Secure mode. Close your browser.
Then try it in FireFox and after that do it in Internet Explorer again.