when I do UI test in karate, I want to get a request url from web, the page will not load, every time the request url will have a unique code in it, the code is what I need in later test.
I cannot use * def actualUrl = waitForUrl('*') to get it because it will give "chrome-error://chromewebdata/", and * def currentUrl = driver.execute_Script("return window.location.href;") is not able to use, karate says execute_Script is not a defined method. Please help, thank you enter image description here