Forum Discussion
For each page, the tool itself detects the URL, So I have passed them as variables and based on the required environment I'm passing value (INT url or UAT url). Please refer to the attached screen.
What I see is not a Project Variable, but a property value that you have defined for URL property,
TC will use this criteria to search for the object in the application.
You need to use wild card in your URL. For example,
If I navigate to either HTML, CSS, JAVASCRIPT or SQL via the menu, the URL on the browser changes to either,
https://www.w3schools.com/html/default.asp
https://www.w3schools.com/css/default.asp
https://www.w3schools.com/js/default.asp
https://www.w3schools.com/sql/default.asp
In TC, I've defined the search criteria value for URL as https://www.w3schools.com/*. TC is able to recognise the different pages, because of the wildcard.
Calling either Aliases.pagew3schools.linkCss, or Aliases.pagew3schools.linkJavascript to perform a click, will work.