How to validate whether a value is present or not in the response without specifying the element??

We need to validate whether a particular value is present in the response or not without specifying the element as the value will changes its place dynamically.

Answers

  • jakubiakjakubiak Posts: 696 admin

    Use an assertor tool and create an occurrence assertion set to 1, using an XPath that is general enough to find the element wherever it can appear in the payload.

Sign In or Register to comment.