Forum Discussion

Jaime's avatar
Jaime
Occasional Contributor
4 years ago

How to click onto an order number link when it changes on every run

My auto script creates an order

I then need to click into the order number at the end of the test to verify its contents on the record

The issue is, the order number changes on every test.  Such as 90333, 90334, etc.  No other values exist in front of or after the order number, so even using a wildcard such as * in place of the order number is not working.


Any other ideas on how I can successfully click into the order number?  I'm either getting object does not exist type errors or when using a wild card, I get unable to find the object.  I'm a visual learner, so any examples on how you resolved it via javascript is very helpful (or whichever language you have it working in).  Thx!