Forum Discussion
can you try with below xpath in Xpath Assertion?
# Use declaration of namespaces in that assertion.
exists(//ns5:parent/ns1:child2[. = 'test2']) and expected value should be true
- vignesh2006n9 years agoNew Contributor
Hi,
I was able to achieve it using the below piece of code :
<typ1:conjunction>And</typ1:conjunction>
<typ1:item>
<typ1:upperCaseCompare>true</typ1:upperCaseCompare>
<typ1:attribute>PrimaryAddress</typ1:attribute>
<typ1:operator>EXISTS</typ1:operator>
<typ1:nested>
<typ1:group>
<typ1:conjunction>And</typ1:conjunction>
<typ1:upperCaseCompare>true</typ1:upperCaseCompare>
<typ1:item>
<typ1:conjunction>And</typ1:conjunction>
<typ1:upperCaseCompare>true</typ1:upperCaseCompare>
<typ1:attribute>Country</typ1:attribute>
<typ1:operator>=</typ1:operator>
<typ1:value>US</typ1:value>
</typ1:item>
</typ1:group>
</typ1:nested>
</typ1:item>Now if I want to search based on an OR condition to check if the country is US or the phone number which is an independent tag itself is "xxx-xxxx" then how will I be able to achieve that? Could you kindly assist.
Thanks,Vignesh
Related Content
- 12 years ago
- 2 years ago
- 12 years ago
Recent Discussions
- 2 days ago