Forum Discussion
Hello,
Thank you for quick response.
Basically I tried by the way you suggested. In my project we are majorly focusing on following 99% Keyword Test.
For that I made the generic xpath ,created Project level variable, pass that variable through Keyword Value but now its showing me an error as below.
My xpath is :
//a[text()='%AddRemoveQuoteNumber%']/..//preceding-sibling::td/input
Can you please suggest how to add Variable name in Xpath, since I tried before by the given way as below,
//a[text(), '%projectVar1%']
Could you possibly share a screenshot of the object selectors in the project's Name Mapping, as well as the project variables? If your project's local variable is not set when TC attempts to find the mapped object, it would throw that error - or if you have not saved and updated your changes. Try refreshing the mapped object and see if TC can find it using the project variable (you need to have the tested app open and the object visible before you refresh)
This might also depend on what type of project variable you are using. Here's a good post about that [here]. And a good reference for working with project variables in keyword tests [here].
Related Content
- 4 years ago
- 4 years ago
- 5 years ago
- 13 years ago
- 4 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago