Nightwatch命令中的Access API

时间:2017-04-27 12:48:49

标签: nightwatch.js

我在测试中调用了section命令。该命令尝试调用

this.api.click('@someElement')

这会导致测试失败并出现以下错误:

TypeError: Cannot read property 'click' of undefined.

我也试过

this.click()

告诉我

TypeError: this.click is not a function

0 个答案:

没有答案
相关问题