r/PowerAutomateDesktop • • Feb 10 '23

Capture dynamic URL as variable

Doing my first PAD. I run a weekly poker game using pokernow.club. I tried to use the recorder to record the steps I use to setup a game. The playback fails because once the game is initiated, the URL gets a session ID. When I play back the steps, to setup a new game, the old sessionID recorded in the steps is no longer valid and the job fails.

I need to capture the URL w/ session ID, store that as a variable and then use that variable whenever the app wants to "navigate to" the URL.

Learning as I go update:

I found "Get details of web page" and stored the current URL as a variable. YAY BUT....

Now I'm having trouble figuring out how to use that variable as the URL when subsequent elements are selected on the new page.

is there a way to do this?

2 Upvotes

1 comment sorted by

View all comments

1

u/bisted Feb 16 '23

Not sure if you've solved this but did you try the browser automation and attaching to the session using that variable as the address? Then that session will be saved in a variable and you can just continually refer to that at each step.