Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ember.js phantomjs不显示表单字段_Ember.js_Phantomjs - Fatal编程技术网

Ember.js 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") {

我正在使用以下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") {
    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服务器正在运行吗?