Handle Dynamic URL for Use application activity

Hi, I have one issue while automating a process which uses microsoft edge view. Actually after indicating the edge view i got the below URL as the App path but my issue here is in the below URL 123.0.2420.65 this folder name will get changes everytime app gets update also when i deploy the code in other virtual machine the folder name must not be the same. Is there any way that i can browse the msedgewebview and give the folder (123.0.2420.65) name is dynamic? If yes how can i get the folder name to pass as a variable?

“C:\Program Files (x86)\Microsoft\EdgeWebView\Application\123.0.2420.65\msedgewebview2.exe”

@Madhups

Yes you can add a variable in place of the whole url or can add variable only in the place you need

Simply assign the value to the variable and give the string variable name in the url field

Cheers

but i dont know the folder name to assign so i am just giving *(wild card) in place of the folder 123.0.2420.65 hope it should work.

@Madhups

If you give * it might not open…

Rather first use for each file in folder activity and give the folder path till the folder before 127…. And tick on include subfolders

And give the name filter as msedgewebview2 …so that you would get the exact path of the file

Then use that in the following activities

Cheers

I see that application is opening and completed end to end even if keep the folder name only as * but here i am facing the issue when i am running on unattended mode, it is working only when i open the remote machine but when i don’t open the remote machine just run on unattended mode then it is failing to recognize the selectors. any suggestions here?

@Madhups

Is the robot installed in service mode?

Cheers

we have already other bots running with different applications we never faced this kind of issue, it was working fine. Let me cross check that also.

1 Like

Hi Anil, How to check the settings?

@Madhups

Go to task manager → details → check for UiPath.service.host service if present then it is in service mode

Also did you happen to check the acreenshot when failed?

Identify exactly on what step it is failing and if screenis aligned with it

Cheers

after launching the application from SAP, immediately next step i kept as check app state it is failing at first step only, i thought it may be because of delay but i kept enough delay, later when i opened RDP it was working fine then i realized it is not working in unattended mode

@Madhups

Check app state would not fail though…it would either give false or true only

Looks like sap did even launch…

Cheers

It launched anil, i kept the screenshot in that i can see the application is on foreground but still check app state failed to identify also we checked the settings in VM we can see that service.host.exe is available. any other suggestions?

@Madhups

Can you show the selector for check app state please…also try increasing the timeout just in case of lags

Cheers

Hey @Madhups

Check UiPath.Service.Host in task manager!

I’m attaching a reference post link I have answered there briefly,

Just follow the steps properly, will get the expected output!

Happy Automation!

Regards,
Ajay Mishra

I did check that it is UiPath.service.host in task manager.

Hi Anil, i removed the check app state instead i kept element exists still it is failing, there is already 60 sec delay i have kept.But everytime it is going in else section and throwing error that page is not visible but in the error screenshot i can see the page.

@Madhups

Can you check if in favorites 0 is changing

Also in the wnd selector you can remove cls…

Cheers

favorites will always be 0 because for our account we are not going to keep the favorites. I have removed the cls but still not working

@Madhups

Try removing the two lines in between and use only last and also use a reliavle name

Cheers

i did that already, i added the two lines recently but still failing with both selectors.