【发布时间】:2018-02-14 16:41:25
【问题描述】:
我有以下代码:
casper.start("my link here", function() {
this.click('.btn btn-primary circle right');
});
casper.run();
我收到错误CasperError: Cannot dispatch mousedown event on nonexistent selector: .btn btn-primary circle right
如果我检查 chrome 中的元素,它看起来像 <button class="btn btn-primary circle right" data-reactid=".3.1.0.0.0.1.3.0.0.0.$right" data-label="right" data-action="Pagination" data-search-track="true"></button>
我也可以console.log(this.getPageContent());,我可以在输出中看到按钮。
【问题讨论】:
标签: javascript casperjs