我可以使用空手道 UI 用 POST 打开 URL 吗?
Can I open URL with POST using Karate UI?
在Karate UI中,我可以用POST打开URL吗?
* configure driver = { type: 'chrome', showDriverLog: true }
Given driver 'https://example.com' # I want to open this URL with POST.
您可以使用 script()
在页面中插入任何 JavaScript。
所以我建议您可以创建一个不可见的表单,然后提交它。或者,托管一个特殊页面来进行测试可能会更简单。
详情请看这里:
在Karate UI中,我可以用POST打开URL吗?
* configure driver = { type: 'chrome', showDriverLog: true }
Given driver 'https://example.com' # I want to open this URL with POST.
您可以使用 script()
在页面中插入任何 JavaScript。
所以我建议您可以创建一个不可见的表单,然后提交它。或者,托管一个特殊页面来进行测试可能会更简单。
详情请看这里: