Unable to verify element property value (missing groovy)y

I dont know what seems to be the problem can someone help me? I’m actually following a tutorial on youtube but I’m encountering an error .

Which one? Could you share the URL?


You wrote the following line, which is wrong:

WS.verifyElementPropertyValue(response, '.data.last_name', 'Weaver')

You should rather write this:

WS.verifyElementPropertyValue(response, 'data.last_name', 'Weaver')

Difference? — A single dot . preceding data.

You would want to review the syntax rule of Element Locator.

got it now… thanks for this! yeah, ill check the syntax rule :slight_smile: