Hello,
I have a query. Is the a way to dynamically change the BrowserType property in Attach Browser activity? This will be neat because my clients have different preferences about which browser they use. since the BrowserType property is a dropdown, I have to select one at design time, but after that I cannot change it at run time.
I want to check process status, then change browser type based on which browser process is running on the user’s machine.
I tried to change “app=‘chrome.exe’” or “app=‘firefox.exe’” or “app=‘msedge.exe’”, but because the BrowserType property remains the same, the bot fails.
Why cann’t BrowserType accept a variable, which will make it flexible?
There are two possible ways of changing browser type the first one will not work on runtime but you have to run the tool before job runs and it is official UiPath software. The second one can be run on runtime, but I would not recommend it because it may be that robot will have to access the file being run and then it would throw an error in runtime. Best to use these before runtime, but if you must then second option is better suited.