Forum Discussion
You don't say which part changes, but I'm going to go with the URL being stable. I would define a variable with a short name to be equal to your URL string and then use the variable in the page name.
- Azeddin_Margani4 years agoContributor
Hi Marsha,
The part that keeps changing is highlighted in blue:
Sys.Browser("chrome").Page("https://uat.testenviroment-test.com/customers/").Panel("portal").Panel(0).Panel(0).Panel(0).Panel(2).Panel(1).Panel(0).Panel(0).Panel(0).Panel(1).Panel(0).Panel(1).Panel(0).Panel(0).Button(0)
Please provide with illustrative example in here.
I would like to achieve 2 things if possible:
1. To shorten this object id.
2. To use a wild card on the these panels as they keep changing.
Many Thanks,
Az.
- Marsha_R4 years agoModerator
Try
Sys.Browser("chrome").Page("https://uat.testenviroment-test.com/customers/").Panel("portal").*.Button(0)
- Azeddin_Margani4 years agoContributor
Hi,
Do i need to declare the use of * anywhere in TestComplete because it tells me Unexpected Token *.
Thanks,
Az.
Related Content
- 14 years ago
- 14 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago