javascript
  • r
  • 2017-08-02 59 views 0 likes 
    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); 
         });") 
    

    回答

    0

    这实际上是webshot()包中的一个问题。 'eval'参数没有被执行。我在软件包回购上创建了一个问题,现在应该修复它。

    相关问题