How to pass application path dynamically to application descriptor

Hi All, I have build automation where I have used object repository. I have application path where it will be different for each env(Dev, Prod). Could you please help me how to pass application path dynamically to object repository descriptor.

@Santosh_Chhotaray,

Follow this solution

and this one as well

Hi @Santosh_Chhotaray

Pls store the application path in config file or orchestrator asset and pass it dynamically to object repository using variable in application path property of use application/browser.

if you found helpful, mark as a solution tick .
happy automation

Use evvironment.specialfolder for dynamic path of application like
System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), “Notepad++”, “notepad++.exe”)
here we use environment with app name for dynamic path of application.You can change according to your application.

@Santosh_Chhotaray

you can add a variable and that would reflect in the workflow you drag that screen

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.