2016-07-07 15 views
0

同じpage.open(url, function(status) { }内のページ間を移動する場合は、のphantomjsを使用します。それは可能ですか?ファントムを使用してページ間を移動する方法

例:

page.open(url, function(status) { 
    page.includeJs("https://code.jquery.com/jquery-3.0.0.slim.min.js", function() { 
     var response = page.evaluate(function() { 

      ..code.. 

      window.location.replace('new url'); 

      ..code for new url.. 

      return response; 

     }); 

     console.log(response); 

     phantom.exit(); 

    }); 
}); 

すべてのヘルプは高く評価されます。

答えて

関連する問題