WSBuiltInKeywords.verifyElementText failed for complex GPath expression

Following XML is a snippet:

<soap:Envelope xmlns:soap="">
             <attribute name="Description">
                <value>My Description</value>
             <attribute name="Remarks">
                <value>My Remarks</value>
             <attribute name="Title">
                <value>My Title</value>

I want to verify the text of the value of the attribute which had “Description” as the name is “My Description”. I have used following code:

WSBuiltInKeywords.verifyElementText(response, 'documentDetail.attributes.attribute[@name="Description"].value', 'My Description')

While execution it is throwing an exception:

... Unable to verify element text (Root cause: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: unexpected token: = @ line 1, column 135.
1 error

What kind of GPath expression should I use to achieve the requirement? Is it an API bug?


Any update?


It seems to be issue on the xml path syntax of the script. I am looking more on it, pls hold on for a while.

was this issue resolved? I still see same error mentioned in original post.

Could you try this: