Need help comparing orderID on a second page
I'm trying to create a keyword test where after completing an order, there is a orderID that gets displayed. On that same page there Is a link that will take an user to the details of the order. Here the number gets displayed once again. I want to make the test in such a way that It checks if both of these orderID numbers are the same.
So far I've created a temporary project variable. I use this variable at the beginning of the test to store the value of the orderID. To do this, I've created a set variable command with the mode of object property, using on screen object. I get a few options to choose as value, but none of them have the number, except the clipboard value. This value beeing: Aliases.browser.pageAtaroBvReserveren.textnodeReserveringsnummer7911.MappedName
After making the test go the orderdetails page, I've used a property checkpoint using the same proces as before. And comparing the value to the variable with cmpEqual. The value I get out of this is: Aliases.browser.pageAtaroBvBesteldetails.textnodeBestelling7911.MappedName
Now In both of these, the number is the same. How do I get It to ignore everything else but the number?
I figured out the problem. It couldn't find the parent object because the parent object had the wrong namemapping. It was still looking for an URL with the ID inside of it. I changed the object ID nummer to be anything using the *. However since this second number was inside a parent, it was still looking for the specific number because the parents namemapping was unaltered.
So by changing the namemapping using an *, the test now works as it should.
Thanks alot for your help and patience!