SeleniumBasic VBA open edge in IE mode - vba

Trying to open a URL in an Edge Browser using SeleniumBasic (VBA). The problem is the secure website doesn't like two things. One SeleniumBasic-controlled website is in debug mode. Secondly, it requires the Edge Browser to be in IE mode.
I can open/work on other websites with no issues. Any help would be appreciated.

using this link solved the problem. I was able to load into an Edge browser and work with the Dom Document directly. Using IE Mode.
https://learn.microsoft.com/en-us/answers/questions/829365/vba-automation-with-edge-ie-mode.html

Related

Can not access to Zenmate extension webpage only in incognito mode

I try to access Zenmate extension webpage using Selenium and i succeeded opening it in regular mode but i cant access to webpage in incognito mode. I get the error "This page has been blocked by Chrome ERR_BLOCKED_BY_CLIENT". It works perfectly fine in regular window. How can i solve this issue? I need to use it in incognito because dealing with cache and saved data is not good for my Selenium code to run.This is my code to get the webpage.
driver.get('chrome-extension://fdcgdnkidjaadafnichfpabhfomcebme/index.html')

Selenium edge driver cannot go to extension page

I'm using Selenium 4 to do some automation and currently we just use it on chrome driver. I'm adding support for edge and got to that problem. (Using C#)
On chrome I can go to a extension settings page by doing:
driver.Navigate().GoToUrl("chrome-extension://<extensionId>/html/settings.html");
With that I can go to the settings page of my extension on chrome. However when I try the same code on edge (with the correct edge extension path) it doesn't work but when I copy and paste it directly to the browser and press enter it goes fine. Do anyone have any input?
edgeDriver.Navigate().GoToUrl("extension://<extensionId>/html/settings.html");
So, you should replace extension with chrome-extension in your URL
You should use
edgeDriver.Navigate().GoToUrl("chrome-extension://<extensionId>/html/settings.html");

How we can automate real browser instead of using selenium browser instance

I am trying to scrape a website, but it is not loading in selenium. When I browse that website in my "real" chrome browser, everything works fine. Is there any way I can use my real browser with python to automate stuff, instead of using selenium??
Thanks
Using selenium we can automate real browsers.
If in case the website is not loading via selenium, you can check if adding desired capabilities helps.
Here we can set proxy, disable extensions etc. There are many options available.
https://chromedriver.chromium.org/capabilities
Also if you can share what kind of error is displayed that would be helpful.

How do some sites automatically open in Edge when tried to open in IE11?

When I try to browse to netflix.com (for example) in IE11 (on Windows 10), IE11 shows a page with the title "We recommend viewing this website in Microsoft Edge", and the site automatically gets opened in Edge.
Does anyone know how that works? Is it done via an internally compiled list of sites or something I can set up on my website?
Thanks
You had asked, "Does anyone know how that works? Is it done via an internally compiled list of sites or something I can set up on my website?"
When a user goes to a site that is incompatible with Internet Explorer, they will be automatically redirected to Microsoft Edge. For more detailed information, you can refer to the Redirection from Internet Explorer to Microsoft Edge for compatibility with modern web sites.
Microsoft maintains a list of all sites that are known to be incompatible with Internet Explorer. You can view the site list here. If you want to add your site to the incompatible site list then you can refer to the Request an update to the IE compatibility list.
The MS Edge 87 or greater browser installs the BHO named IEToEdgeBHO that performs the redirection based on IE compatibility list from IE to Edge browser.
You can find this BHO at the location below on your machine.
C:\Program Files (x86)\Microsoft\Edge\Application\<Your_browser_version>\BHO
If you want to achieve something similar using the code in your own site then you can refer to the example on this answer. The test shows results for the Edge legacy browser but it can also work with the Edge (Chromium) browser.
Note: that the example code mentioned in the answer may break when the Edge browser is not installed on the machine. so you can try to modify the example to handle that kind of situation.
Helpful reference:
What “magic” causes “cnn.com” when typed in IE11 to automatically launch Edge (Chromium)?
Netflix specifically is on a list of websites that automatically open in Edge when they are accessed from Internet Explorer. The list is maintained by Microsoft.
If you do not want to go through the application process to get your website added to this list, you can resort to detecting which browser the user is on and handling the notice yourself.
Here is a decent list of current Internet Explorer user agents.

IE 10 not using AppCache after browser closed

I wrote an application using the HTML5 Cache Manifest and I'm having a problem using it in IE 10.
I used Fiddler to witness the manifest file being downloaded and all resources fetched on the initial load of the application. If I disable my network adapter to force the machine offline, the application continues to work as expected as long as I don't close the browser window.
However, when I close the browser window, then attempt to re-open the page from a favorite, IE 10 tells me "You're not connected to a network". Obviously I know that, I'm trying to use the app offline. These exact steps work in Chrome.
Is this behavior by design? Is there a workaround? I can't test with IE 11 right now...is this different in IE 11?
Hearing of some issues of the appcache clearing if your company utilizes gpo settings and has "empty temporary internet files folder when browser is closed" enabled.
Did you find the answer to this? I have the same problem. I did get a bit further though. I found that if you go to the IE10 File menu option and tick Work Offline then try and access your cached app it loads the page but I still have an issue as it does not appear to be using the javascript file that should also be cached. All works ok on Google Chrome but our clients are restricted to IE so Chrome is not an option.