Can a script developed in one browser be executed in another browser

I want the same script developed in Chrome to run in IE/Edge/Firefox based on the user input and without changing the script

Not without changing the selectors used. When you create a workflow for a browser it uses selectors specific to that browser. For example a new google chrome tab selector is “<html app=‘chrome.exe’ title=‘New Tab’ />” and a new IE tab is “<wnd app=‘iexplore.exe’ cls=‘IEFrame’ title=‘New tab - Internet Explorer’ />”.

So you would need to change all of the selectors to transfer to another browser.

@DanielMitchell is correct. If all your activities were inside an attach or open browser scope though you only need the change the selector of the scope however.

1 Like