Ember.js phantomjs不显示表单字段
我正在使用以下js脚本在本地运行的ember站点上创建phantomjs:Ember.js phantomjs不显示表单字段,ember.js,phantomjs,Ember.js,Phantomjs,我正在使用以下js脚本在本地运行的ember站点上创建phantomjs: //test_phantomjs.js require('phantomjs-polyfill'); var page = require('webpage').create(); page.open('http://localhost:4200/', function(status) { console.log("Status: " + status); if(status === "success") {
//test_phantomjs.js
require('phantomjs-polyfill');
var page = require('webpage').create();
page.open('http://localhost:4200/', function(status) {
console.log("Status: " + status);
if(status === "success") {
page.render('example.png');
}
phantom.exit();
});
我运行测试此脚本的命令如下所示:
phantomjs --remote-debugger-port=9001 --remote-debugger-autorun=yes test_phantomjs.js
我应该得到登录表单,但是我没有得到表单,只是一个空页面
但是,如果将url更改为development ember应用程序,那么我将获得带有表单字段的完整页面
如何修复本地运行的ember应用程序,以便使用poltergeist进行测试?您确定在本地使用PhantomJS时ember服务器正在运行吗?您确定在本地使用PhantomJS时ember服务器正在运行吗?