given the project structure below, do you know how to make test.xaml tell its path with an activity inside of test.xaml w/o providing any information about the (relative) path within test.xaml?
Project Root
Folder A
Folder B
Folder B1
Folder B2
- test.xaml
Please, assume that the name of test.xaml is not unique in the project.
that doesn’t help. I don’t want to append the relative path. I want that the xaml file tells me its full path without specifying any path-related information of the xaml file within the xaml file.
thanks but I have already seen this post. The proposed solution in this post doesn’t solve my problem. I’m working in a test automation project. Each xaml file is a test case. So, there’s is no main.xaml.
We are in the same shoes as you. This is how we find out our full path file to our test cases. It works on both Studio and all Robot types.
One condition is that the filename is unique and a duplicate does not exist in other folders of the project if so you will get multiple hits in the check (if) and the last file in the loop will be set to out_ThisFileFullPath
Unfortunately, I am looking for a solution that doesn’t require the file name to be unique. For example, in VBA you can get the current file path and name by ThisWorkbook.FullName. I’m looking for something similar for xaml files.
I have tried every single suggestion from this thread before. The Last reply from @rpamania is the easiest way to get the current workflow name. But it returns only the file name not the relative path. But then @Emerald does not want to add relative path or do any checks with file names as I suggested above.
Sadly none of those approaches will work here.
The only place I found some hope is in this suggested solution :
PoweShell?
I also tried PowerShell, but UiPath executor (project.json location) takes precedence