Verifying a <td> table cell returned from a function has a given title attribute?

1:

  • You have to specify find because here you use the default exists that returns a boolean
  • You don’t have to convert to a String, our engine currently converts always into String (will try to change this in a next version)
  • You don’t need the //, you can just se one (search always starts from root)
    So it’s .check(jsonPath("/result/colData/records").find.is(“2”))

2:
.check(jsonPath("/result/colData/rows/cell[2]").findAll.is(Seq(“User Name2”, “User Name2”)))

Steph

Thanks again Steph - works great :slight_smile:

I noticed there’s a function to “doif”, but is there a function to “checkif”?

Thanks again Steph - works great :slight_smile:

Glad to hear.

I noticed there's a function to "doif", but is there a function to
"checkif"?

You mean have a check than would be performed on a condition? No, we don't
have such a thing.
There's actually a hook for building your own matcher ("matchWith" to be
used instead of "is", "not", etc), but you'd better be familiar with Scala.

Stéphane