0
我想在R中的webshot()中用casperJS登录,但是我的代码不起作用。我在下面做错了什么?不能用casperJS在webshot()中登录R
library(webshot)
webshot('https://suite.searchmetrics.com/en/auth/login', zoom = 1.3,
eval = "
this.wait(5000);
var url = 'https://suite.searchmetrics.com/en/auth/login';
casper.start(url, function() {
console.log('page loaded');
this.fill('form#loginForm', {
mail: 'my_email',
password: 'my_password'
}, true);
});")