Jacob_Hassing
16 years agoContributor
Assertion question
hi
is it possible in an xpath assertion to validate that at least 1 of the returned element will have a specific value.
Consider this part of xml response:
[sub:2pc0bcl4]
230
ACT
549251812
Reference A
231
ACT
5492518332
Reference B
[/sub:2pc0bcl4]
there might be many agreement elements, but i want to verify that at least 1 of the reference elements has the value = "Reference B"
is it possible in an xpath assertion to validate that at least 1 of the returned element will have a specific value.
Consider this part of xml response:
[sub:2pc0bcl4]
there might be many agreement elements, but i want to verify that at least 1 of the reference elements has the value = "Reference B"