def title = 'some real Title'
I want to validate (wait for) title by calling method.
waitUntil("document.title == '#(title)'")
But it does not work. Any idea how I need to include title to the wainUntil method?.
def title = 'some real Title'I want to validate (wait for) title by calling method.
waitUntil("document.title == '#(title)'")But it does not work. Any idea how I need to include title to the wainUntil method?.
Copyright © 2021 Jogjafile Inc.
The
#()placeholder system works only for JSON.One tip: anywhere in Karate within "round brackets" you can refer to variables directly.
So try this:
Read the docs carefully also, pay attention to the part "Karate vs the Browser": https://github.com/karatelabs/karate/tree/master/karate-core#waituntil