Phantomjs 如何在CasperJS中启用java插件?

Phantomjs 如何在CasperJS中启用java插件?,phantomjs,casperjs,Phantomjs,Casperjs,我尝试测试一个需要java插件的站点 使用此代码 casper.test.comment('-> Loading page'); casper.start('http://localhost:8080', function() { casper.test.comment('-> Capture : homeURL loaded.png'); casper.capture('homeURL loaded.png'); }); casper.run(function(){

我尝试测试一个需要java插件的站点

使用此代码

casper.test.comment('-> Loading page');
casper.start('http://localhost:8080', function() {
   casper.test.comment('-> Capture : homeURL loaded.png');
   casper.capture('homeURL loaded.png');
});

casper.run(function(){
   this.test.done();
});
我有一个显示java插件未加载的捕获

我怎样才能加载它

我也试过这个,但也不起作用:

var casper = require('casper').create({
    verbose: true,
    logLevel: 'debug',
    pageSettings: {
        loadImages:  true,        // The WebPage instance used by Casper will
        loadPlugins: true         // use these settings
    }
})

casper.test.comment('-> Loading page');
casper.start('http://localhost:8080', function() {
   casper.test.comment('-> Capture : homeURL loaded.png');
   casper.capture('homeURL loaded.png');
});

casper.run(function(){
   this.test.done();
   casper.exit();
});
致以最良好的祝愿,
克里斯

我确实用过这个,只是把url改成了google.com

var casper = require('casper').create({
    verbose: true,
    logLevel: 'debug',
    pageSettings: {
        loadImages:  true,        // The WebPage instance used by Casper will
        loadPlugins: true         // use these settings
    }
})
casper.test.comment('-> Loading page');
casper.start('http://google.com', function() {
   casper.test.comment('-> Capture : homeURL loaded.png');
   casper.capture('homeURL loaded.png');
});
casper.run(function(){
   this.test.done();
   casper.exit();
});
 It ran for me ...This is  what I got back
C:\Examples>casperjs  test load.js
Test file: load.js
# -> Loading page
[info] [phantom] Starting...
[info] [phantom] Running suite: 2 steps
[debug] [phantom] opening url: http://google.com/, HTTP GET
[debug] [phantom] Navigation requested: url=http://google.com/, type=Other, will
Navigate=true, isMainFrame=true
[debug] [phantom] url changed to "http://google.com/"
[debug] [phantom] Successfully injected Casper client-side utilities
[info] [phantom] Step anonymous 2/2 http://google.com/ (HTTP 407)
# -> Capture : homeURL loaded.png
[debug] [phantom] Capturing page to C:/Examples/homeURL loaded.png
[info] [phantom] Capture saved to C:/Examples/homeURL loaded.png
[info] [phantom] Step anonymous 2/2: done in 242ms.
[info] [phantom] Done 2 steps in 245ms.

您好,CasperJS是否能够使用小程序?否则我将停止使用该工具进行测试。最好的问候,克里希·迪维亚,我在其他网站上尝试过这样的东西,而且效果很好。但我自己的站点使用applet进行身份验证,我无法启动java插件来执行它。