我正在尝试检查警报消息,但它不起作用。
这是代码:
Then match driver.dialog == "Trigger type not chosen"
这是错误:
match failed: EQUALS $ | data types don't match (OTHER:STRING) com.intuit.karate.driver.DevToolsDriver.dialog 'Trigger type not chosen'
这可能是我们文档中的一个问题,请尝试
driver.dialogText
:
你能试试这个吗:
* match driver.dialogText == "Trigger type not chosen"