smadji
12 years agoContributor
adding xpath to a not-contain assertion
I am trying to validate my pagination options. For that I need to assert that a unique ID from one page is NOT on the next page.
I have a request for page 1 and a request for page 2.
I am trying to assert that the second page does not contain a unique ID from the first page. But the not-contain assertion is looking for text within it and I am trying to use a dynamic operator (like xpath) where the unique number will change when I run the steps in sequence.
Any easy solution for that?
I have a request for page 1 and a request for page 2.
I am trying to assert that the second page does not contain a unique ID from the first page. But the not-contain assertion is looking for text within it and I am trying to use a dynamic operator (like xpath) where the unique number will change when I run the steps in sequence.
Any easy solution for that?