anand1
12 years agoContributor
[Resolved] Using XPATH Assertions
In my test case I am getting the response as
<data contentType="text/plain; charset=utf-8" contentLength="25"><![CDATA[This is a valid text.
]]></data>
Problem is: I need to assert the the message content using the xpath match, however in the response at the end there is a new line character, due to which my XPATH assertion is getting failed.
Kindly suggest a way by which I can ignore the new line character, as I have to match the content of the string only.
Looking forward for your response.
<data contentType="text/plain; charset=utf-8" contentLength="25"><![CDATA[This is a valid text.
]]></data>
Problem is: I need to assert the the message content using the xpath match, however in the response at the end there is a new line character, due to which my XPATH assertion is getting failed.
Kindly suggest a way by which I can ignore the new line character, as I have to match the content of the string only.
Looking forward for your response.