Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行https://github.com/winsonwq/viff-examples上的demo报错 #43

Open
kangjy opened this issue Nov 30, 2014 · 0 comments
Open

运行https://github.com/winsonwq/viff-examples上的demo报错 #43

kangjy opened this issue Nov 30, 2014 · 0 comments

Comments

@kangjy
Copy link

kangjy commented 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)

@kangjy kangjy changed the title 运行https://github.com/winsonwq/viff-examples上上的demo报错 运行https://github.com/winsonwq/viff-examples上的demo报错 Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant