Cross Browser Testing

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.

1 Like

@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:

1 Like