Is there a way I don't have to hard code the File Path to create a folder?

For the Create Folder action:

  • Is there a way I don’t have to hard code the File Path to create a folder on a Windows profile?


Is there a way in which I can get the UserName Profile currently being used so the FilePath can be different for the name of the user running the test?

These were the steps that I performed to get the username. Hopefully, it will work for you as well:

The output of step 1 was stored in a parameter called “systemUserName”.

The username in my work windows folder is in lowercase, so I added step 2 to convert it to lowercase and used trim step to remove some extra whitespace. You can skip those steps if not needed.

1 Like

Thanks - much appreciated

This topic was automatically closed after 180 days. New replies are no longer allowed.