我正在尝试使用:
var newGroups = document.getElementsByTagName("a.group-link")
var id = newGroups[0].getAttribute('id')
.click(id)
在 nightwatch.js - 但每当我尝试使用 ' document' 时,我都会收到以下错误:
✖ ReferenceError: document is not defined
我正在尝试使用:
var newGroups = document.getElementsByTagName("a.group-link")
var id = newGroups[0].getAttribute('id')
.click(id)
在 nightwatch.js - 但每当我尝试使用 ' document' 时,我都会收到以下错误:
✖ ReferenceError: document is not defined