单击 svg 按钮并复制 url 涉及哪些步骤

What are the steps involved for svg button click and copy the url

编写 UI 使用空手道框架进行测试的步骤 所以基本上是 svg 按钮,必须单击新选项卡中的 URL 才能进行进一步的功能处理 如何处理?

我试过下面的代码

并验证 secure_url 值使用 打印 secure_url 它打印 com.intuit.karate.driver.DriverMouse@664e5dee 但预期是 URL

大多数空手道方法将 return 一个 Element 对象,您必须在该对象上调用更多方法。请花一些时间阅读文档:https://github.com/intuit/karate/tree/master/karate-core#chaining

* def elem = locate('#some-id')
* def url = elem.attribute('href')