You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.js:92
throw new assert.AssertionError({
^
AssertionError: abnormal phantomjs exit code: 1
at Console.assert (console.js:102:23)
at ChildProcess. (C:\Users\kangjy\AppData\Roaming\npm\node_modules\viff\node_modules\phantom\phantom.js:136:28)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:797:12)
The text was updated successfully, but these errors were encountered:
kangjy
changed the title
运行https://github.com/winsonwq/viff-examples上上的demo报错
运行https://github.com/winsonwq/viff-examples上的demo报错
Nov 30, 2014
js如下:
'use strict'
var config = module.exports = {
seleniumHost: 'http://localhost:4444/wd/hub',
browsers: ['chrome'],
envHosts: {
build: 'http://localhost:80/example/build',
prod: 'http://localhost:80/example/prod'
},
paths: [],
reportFormat: 'file',
test: function test (description, caseConfig) {
var c = {};
c[description] = caseConfig;
this.paths.push(c);
}
};
config.test('Home Page', ['/github.html', function (browser) {
return browser.waitForElementByCssSelector('.repo-list-item', browser.isDisplayed());
}]);
config.test('Search Result', ['/github.html', function (browser) {
return browser
.waitForElementByCssSelector('.repo-list-item', browser.isDisplayed())
.elementByCssSelector('[type="search"]').type('commander.js')
.sleep(1000);
}]);
config.test('Open Readme file', ['/github.html', function (browser) {
return browser
.waitForElementByCssSelector('.repo-list-item', browser.isDisplayed())
.elementByCssSelector('.repo-list-item:nth-child(2)').click()
.waitForElementByCssSelector('.repo-readme', browser.isDisplayed());
}])
报错信息如下:
D:\test>viff build_prod.config.js
Viff is taking screenshots...
phantom stderr: 'phantomjs.cmd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
assert.js:92
throw new assert.AssertionError({
^
AssertionError: abnormal phantomjs exit code: 1
at Console.assert (console.js:102:23)
at ChildProcess. (C:\Users\kangjy\AppData\Roaming\npm\node_modules\viff\node_modules\phantom\phantom.js:136:28)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:797:12)
The text was updated successfully, but these errors were encountered: