use fixed chrome version via puppeteer (#1204)

* use fixed chrome version via puppeteer

* remove not needed option and try a headful run

* update to latest Chrome 77

* Update protractor.conf.js

switch back to headless
This commit is contained in:
Denys Vuika
2019-09-13 11:29:52 +01:00
committed by Cilibiu Bogdan
parent 6399871e53
commit 7591710fd0
4 changed files with 142 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ const path = require('path');
const { SpecReporter } = require('jasmine-spec-reporter');
const jasmineReporters = require('jasmine-reporters');
const CDP = require('chrome-remote-interface');
const fs = require('fs');
const projectRoot = path.resolve(__dirname);
const downloadFolder = `${projectRoot}/e2e-downloads`;
@@ -12,8 +13,6 @@ const downloadFolder = `${projectRoot}/e2e-downloads`;
const width = 1366;
const height = 768;
var fs = require('fs');
function rmDir(dirPath) {
try {
var files = fs.readdirSync(dirPath);
@@ -92,6 +91,7 @@ exports.config = {
capabilities: {
browserName: 'chrome',
chromeOptions: {
binary: require('puppeteer').executablePath(),
prefs: {
credentials_enable_service: false,
download: {