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);
});")