Our application is available in German and English, other languages may follow. Given I have an XPath like /form/button[@text="Login"]
, is there a convenient way to have it translated?
At the moment I'm trying with SAP GUI like this:
I wonder whether there's a concept like .NET Resources where you can have a Resources.resx
file and a Resources.de.resx
file.
Of course I could use /form/button[@text="{0}"]
and then use a string.Format()
call, but that's absolutely inconvenient because the "Highlight element" feature gets broken.
I have tried:
- looking at the properties of the .rxrep file, but it does not have a property that is related to my issue.
- introducing a variable, which basically works. The XPath is then
/form/button[@text=$Variable]
but I could not find a way of translating the variables.