嗨,我正在尝试插入电子邮件,然后单击“下一步”按钮,但是当它单击“登录”时,它没有显示任何内容,这是我的代码
HTML
<button type="submit" data-aut-id="" class="rui-3sH3b rui-1GYid _2_t7-"><span>Next</span></button>
代码
casper.then(function() {
this.sendKeys('input[name="email"]','john.doe.96.test@gmail.com');
this.wait(2000);
this.capture('email.png');
this.echo("email entered");
if(this.exists('.rui-3sH3b, .rui-1GYid _2_t7-')) {
this.echo(" found next btn " );
this.click(x('//*[@class="rui-3sH3b rui-1GYid _2_t7-"]/span[text()="Next"]'));
this.wait(4000);
this.echo("after email insertion "+this.getCurrentUrl());
this.capture('testing.png');
}
this.capture('test at the end.png');
});
当我捕获email.png时,它会显示 before clicking to next button
但是当我单击下一步按钮时,它会在testing.png中显示
它应该显示的是this
请帮助我 谢谢