Forum Discussion

Bishal's avatar
Bishal
Contributor
8 years ago

How to Remove extra [] from the Xpath Expression Response.

Hi, I am using XPath Assertion to compare expected value vs actual   Actual XPath Assertion //Response[1]/e/columns --- This provides concat values for all the nodes = column under Response/e ....
  • Bishal's avatar
    8 years ago

    This issue is fixed.

     

    //Response[1]/e/columns -------- this was giving me an issue with extra []

     

    So , i changed it to

     

    string-join(//Response[1]/e/columns/text(),',') --- This helped me to remove an extra []