我正在尝试通过Karate v0.9.5进行UI测试就我而言,我像这样使用waitFor()函数>
* def testName = 'name_' + (int)(Math.random()*100) And input('input[name=title]', testName) When click('{button/span}Add') Then waitFor('{}#(testName)')
并且将
#(testName)
检测为字符串在waitFor()函数中可以使用任何变量吗?
我正在尝试通过Karate v0.9.5进行UI测试,在我的情况下,我使用如下的waitFor()函数* def testName ='name_'+(int)(Math.random()* 100)和input(' input [name = title]',testName)当...
是的,这是最简单的方法。 ( )
中的所有内容均视为纯JavaScript。