I'm trying to get some fairly simple (and identical) tasks automated for multiple user profiles in one flow. However, whilst it's a simple job when I'm dealing with only one profile, I seem unable to scale it to multiples.
The pseudo code is essentially as follows:
***
For each profile, have a look in it's allocated Edge browser and...
if there's anything needing attention ("is there a defined text present on the webpage?")
Press a few buttons to basically process it
Then go to sleep, wake up a bit later and rinse and repeat forever
***
When I do it on a single profile, I load it up using "Launch new Microsoft Edge" (launch mode = launch new instance) and store the instance into the variable Edge1. I then use that variable to do (hard-coded) navigations, new tabs, button presses etc. and it all works perfectly.
I'm thinking that what I'd like to do is basically say "For the next profiles, load up new Edges into browser variables Edge2, Edge3 etc. and then perform the same actions on each, but that's only a guess on direction (which I have not yet managed to get working).
* Good News 1: I'm happy to hard code everything, if I can then just come in in the morning and run the code (I don't need the profile list to be dynamic or anything as changes are rare)
* Good News 2: If I need to do any setups before running the code in the morning, that's ok too as long as I don't actually have to rewrite the flow each day.
* Bad news: I'm new at Power Automate, so don't actually know what I'm doing 😉
* Environment: Win11 (21H2, Build 22000.369), dual monitors, fast PC, MS Edge Chrome (98.0.1109.43). Profiles are already set up on Edge and I can manually jump between them without a problem.
* Things I've tried:
- Clicking on the next profile in Edge pops up a new browser instance, which would be fine if I had a variable holding that browser instance. If I could somehow reference it as (say) "Edge2", that would make things easy.
- Setting up shortcuts for each profile will certainly bring up the Edges under different profiles, but again, without a reference variable, I can't communicate with them as browsers
- Setting up the whole thing as UI rather than Web automation. As well as being rather tedious, I found that Windows tended to change the name of the windows at each run. This actually meant that I could in fact get it all working, but had to recode the whole thing (setting up new UI elements) every day!
Any suggestions gratefully received!
JC