1

For a div that contains the text "What's New", I tried using * waitFor("//div[normalize-space()=\"What's New\"]") with an xpath that successfully locates an element in the dev tools console, but my Karate test failed to locate the same element. I can't find any variations on xpath or KarateUI locator syntax that successfully locate the element.

Ithuvanian
  • 53
  • 5

1 Answers1

0

Yes you can't mix single-quotes like that, because it has to be run as JS in the browser. You are most welcome to contribute code to improve this in Karate.

Try to work-around using alternates:

* waitFor("{^div}s New")
Peter Thomas
  • 54,465
  • 21
  • 84
  • 248