Run web automation using IE mode in MS Edge

Hello!

As per IE is no longer receiving security updates, some web automations will be migrated to MS Edge. In this article there is an example of how to setup selenium to automate IE mode in MS Edge. Is it possible to accomplish the same setup using BotCity Web Framework?

Thank you!

1 Like

Hi @jamaral!

Yes, it would be possible to make a configuration similar to this one. Something like:

from botcity.web import WebBot, Browser
from botcity.web.browsers.ie import default_options

class Bot(WebBot):
    def action(self, execution=None):
        self.headless = False
        
        self.browser = Browser.IE
        self.driver_path = "<path to your IEDriverServer.exe>"

        ie_options = default_options()
        ie_options.add_additional_option("ie.edgechromium", True)
        ie_options.add_additional_option("ie.edgepath", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe")
        self.options = ie_options
        
        self.browse("https://google.com")
        self.wait(5000)

But keep in mind that there may be some limitations, and some problems are common to happen using Internet Explorer: Browsers - BotCity Framework Web - Python

If possible, it would be recommended to use the Edge browser directly.

1 Like

Hi @joaovoltarelli ,

Thank you for supporting me; the config worked perfectly.

This one website hasn’t been migrated to MS Edge yet, but thank you for alerting me about IE limitations.

2 Likes