# Cross Browser Testing

**URL:** <https://forum.uipath.com/t/cross-browser-testing/276309>\
**Category:** Activities\
**Tags:** question, uiautomation, activities\
**Created:** [December 11, 2020, 9:46am UTC](https://forum.uipath.com/t/cross-browser-testing/276309 "2020-12-11T09:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranav\_Jalan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pranav_jalan/32/176978_2.png) [@Pranav\_Jalan](https://forum.uipath.com/u/Pranav_Jalan)\
**Post date:** [December 11, 2020, 9:46am UTC](https://forum.uipath.com/t/cross-browser-testing/276309/1 "2020-12-11T09:46:19Z")

</div>

I have automated an application which is working fine on Chrome browser. But now as per the client requirement I need to run the scrpit using edge and firefox. When I’m trying to run the same script on other browser, I’m facing issue with the selectors as all the selectors contains ‘app=chrome.exe’. Is there any possible way where I can use the same code for testing on multiple browsers.

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [December 11, 2020, 1:21pm UTC](https://forum.uipath.com/t/cross-browser-testing/276309/2 "2020-12-11T13:21:50Z")

</div>

@Pranav_Jalan  
the selectors can be adopted by injecting the browser specific parts with variables. The variable values can be set on browser base (e.g. config tables, lookups, dictionaries).

keep also in mind that some activities also define the browser in its settings (e.g. Attach Browser, open Browser).

For handling this Browser enum have a look here:

> [@How to pass the browser type as parameter](https://forum.uipath.com/t/how-to-pass-the-browser-type-as-parameter/203999/5):
>
> @Bala_Murugan_Kothand Have a look on this Playgame fill in all Browsertypes into an input dialog as selection option Using selected Browser Option for e.g. opening the particular browser [grafik] System.Enum.GetNames(GetType(BrowserType)) is returning a String() DirectCast(BrowserType.Parse(getType(BrowserType), strBrowserTypeName),BrowserType) is returning the BrowserType based on the given String Name So BrowserType Name can be retrieved from excel and be used for opening the particular…
