在我的一个测试中,我登录并转到下一页。在下一页中,当我尝试单击配置文件元素时,.click
似乎什么也没发生。
当我使用该.exists
函数时,它返回 false。
为什么更改 DOM 后chromeless 不能识别元素?
async func(){
try {
this.chromeless
.goto(this.url)
.click(this.switchToLogIn)
.type(this.email, this.emaillAddressInput)
.type(this.password, this.passwordInput)
.click(this.logInButton )
.click(this.myProfile)
.screenshot()
}
catch(err) {
console.log(err)
}