Forum Discussion
rprsekhar
New Contributor
Thanks Mr. nmrao for the response. nmrao
I want to put these conditions in same script.
The pass and failure depends on the input i supply for same request. So, i am trying to read both conditions in same script. Based on the xpaths(which depends on the response), it should read the required xpath and ignore the other part. I have to read the xpaths. If xpath1 exists then i have to read the response 1 else if xpath 2 exists i have to read the response2.
Thanks in advance
rprsekhar
5 years agoNew Contributor
This problem is resolved. I used contains method for conditioning by converting entire response as string. It worked for my case.
Thanks for your help. :)
Related Content
- 6 years agoSK07