I've got a problem using variables within the repository:
During test execution a new form (formA) appears with a variable name.
For this I created a variable within the repository:
formA: /form[@name = $variable]
Within a Code Module I set the value of the $variable to the expected value:
repo.variable = "value";
The verification if this form exists works correctly:
Within the formA there is in the titlebar the cross to close this window.
If I try to click the Close-Button, I got following error message:
If I set the expected value for the actual testcase directly within the repository (no use of variable within the repository, it works correctly.Failed to find item Repository.FormA.TitleBar.ButtonClose'. The folder Repository.FormA.TitleBar' was not found. No element found for path 'titlebar[@automationid='TitleBar']' within 30s.
Why is it not possible to access the close-Button? It seams possible to access the form, so why not the button?
I hope you can help me quickly...
Thanks in advance
P.S: I'm currently working with Ranorex Studio 126.96.36.19912