I have defined a web object and the attributes are like that now:
//a[@role = ‘textbox’ and (text() = ‘${srSearched}’ or . = ‘${srSearched}’)]
This is because I want to be able to click on a changing text in my test.
The way object is used:
//a[@role = ‘textbox’ and (text() = ‘${srSearched}’ or . = ‘${srSearched}’)]
Usage of that object; WebUI.click(find(…, (‘srSearched’) : theValueUsed]))
Now, where it does not work is when you try to “see references” for that object. If you do so, the search will tell that none of the scripts are using that object.
Has been like that for many releases now, did not even recall when if noticed that 1 year ago (of course I was not doing so much maintenance as now!)
Any explanation?
Thanks.
I am in version 6.3.3, build 11. I have also downloaded 7.0 and searched using the newest version. It still does not find parameterized objects, though this object is used in multiple scripts in this project.
I’m using 6.2.2 and it has also never worked for me to successfully search for parameterized objects.
e.g. objects like detect object by xpath equals “//legend[contains(normalize-space(.), “${legend}”)]”
(Searching for non-parameterized objects works fine)