空手道 driver.url 未捕获 window 位置中的内容
Karate driver.url does not capture what is in the window location
当我使用空手道匹配驱动程序 url 时,如果无法访问 url,则 driver.url 不会给出 url 上的正确 url =21=] 浏览器
And print driver.url
Then match driver.url == '#regex http://localhost:3000/?code=*.'
打印驱动程序行给出以下内容作为 url chrome-error://chromewebdata/
我如何使用空手道中的 windows 位置作为解决方法。
使用空手道版本 0.9.6
使用JS从浏览器获取window.location.href
的实际值:
* match script('window.location.href') contains 'localhost:3000/?code='
当我使用空手道匹配驱动程序 url 时,如果无法访问 url,则 driver.url 不会给出 url 上的正确 url =21=] 浏览器
And print driver.url
Then match driver.url == '#regex http://localhost:3000/?code=*.'
打印驱动程序行给出以下内容作为 url chrome-error://chromewebdata/ 我如何使用空手道中的 windows 位置作为解决方法。
使用空手道版本 0.9.6
使用JS从浏览器获取window.location.href
的实际值:
* match script('window.location.href') contains 'localhost:3000/?code='