How to handle if browser changed in production

Hi,
i have developed 1 process using chrome browser for UI automation after deployed in production environment the browser changed like Microsoft edge or firefox.
but my process failed.

how to handle this ?
do i need to change all UI chrome to Microsoft edge or any other solution ?

@anand_kumar4

Yes, you will have to migrate your all Ui activities from one browser to another.

Good news, it’s made simple by UiPath. They provide you an utility named - UiPath Browser Migration Tool to do this migration

1 Like

Hi @anand_kumar4

Your process failed because UI selectors are browser-specific. You don’t need to redo everything, but you should use Modern UI (Use Application/Browser) and make selectors more generic with anchors or wildcards, or control which browser is launched in prod. Best option is to standardize the browser if possible.

Hi @anand_kumar4

Welcome to community!

Please find screenshot for your reference,

And as well follow the below doc
https://docs.uipath.com/activities/other/latest/ui-automation/browser-migration-tool#how-the-uipath-browser-migration-tool-works

1 Like

Hi @anand_kumar4

The simplest approach would be to install Chrome on Production environment and enable required setting and install UiPath extension. If there are restrictions on using chrome then you can think of using the migration tool.

Cheers,
Kunal

Your dev environment should match the production environment. If you are not building the automation on a machine will all of the same applications, your first step should be to address the differences.

1 Like

I would advise you to discuss this with your enterprise IT team to see which browser your company recommends. if there’s nothing explicitly as such, you need to talk to your solution architect or management to setup your RPA CoE governances and best practices to ensure all IT infra and your development practices align.
Since the way these selector are generated differs from browser to browser, it would be pretty difficult for your team to maintain your bots later on, in case you dont have proper governances setup.

SG.

Hi @anand_kumar4,

Please try using the Set Runtime Browser activity before the Use Browser/Application activity.

Reference: Activities - Set Runtime Browser

If this does not resolve the issue, you need to migrate your UI activities.

Thanks

Hello @anand_kumar4

Your development environment should resemble the production as far as possible.

Figure out with your IT-team/stakeholders if Google Chrome could be used in production, and install it on your machine for production.

If this is not an option, you can either manually change the descriptors or use the migration tool.

Regards
Soren

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.