fix chromedriver.path

This commit is contained in:
LeeDr 2016-06-20 09:25:22 -05:00
parent 677a6c1d3f
commit 589cb71cbb
3 changed files with 8 additions and 17 deletions

View file

@ -1,15 +0,0 @@
var path = require('path');
module.exports = function (grunt) {
return {
options: {
selenium: {
filename: 'selenium-server-standalone-2.53.0.jar',
server: 'https://selenium-release.storage.googleapis.com/2.53/',
md5: '774efe2d84987fb679f2dea038c2fa32',
directory: path.join(grunt.config.get('root'), 'selenium')
}
}
};
};

View file

@ -86,7 +86,7 @@ module.exports = function (grunt) {
quiet: false,
failOnError: false
},
cmd: 'chromedriver.path',
cmd: chromedriver.path,
args: [
`--port=${uiConfig.servers.webdriver.port}`,
'--url-base=wd/hub'
@ -100,7 +100,7 @@ module.exports = function (grunt) {
quiet: false,
failOnError: false
},
cmd: 'chromedriver.path',
cmd: chromedriver.path,
args: [
`--port=${uiConfig.servers.webdriver.port}`,
'--url-base=wd/hub'

View file

@ -3,13 +3,16 @@ define(function (require) {
var config = require('intern').config;
var Promise = require('bluebird');
var Common = require('./common');
var HeaderPage = require('./header_page');
var defaultTimeout = config.timeouts.default;
var common;
var headerPage;
function settingsPage(remote) {
this.remote = remote;
common = new Common(this.remote);
headerPage = new HeaderPage(this.remote);
}
settingsPage.prototype = {
@ -238,6 +241,9 @@ define(function (require) {
)
.then(function (page) {
return page.click();
})
.then(function () {
return headerPage.getSpinnerDone();
});
},