protractor config file migration issue #109
Unanswered
bajipogadadanda
asked this question in
Migration Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to migrate protector framework to WDIO.
-I have created a new folder in my local
-Configured the WDIO (WDIO 8 )
-Installed the jscodeshift/codemod
-Trying to migrate the protractor config file as below
npx jscodeshift -t ./node_modules/@wdio/codemod/protractor ./protractor.conf.js
Getting the below error:
Sending 1 files to free worker...
ERR ./protractor.conf.js Transformation error (Cannot read properties of undefined (reading 'map'))
TypeError: Cannot read properties of undefined (reading 'map')
at Function.map (..\node_modules@wdio\codemod\protractor/utils.js:293:61)
at Array.map ()
at NodePath. (..\node_modules@wdio\codemod\protractor/index.js:85:34)
at NodePath. (..\node_modules\jscodeshift\src\collections\Node.js:142:4
Protractor config file:
var Username;
var Password;
var memberName;
var mkdirp = require('mkdirp');
var rmdir = require('rmdir');
process.argv.forEach(function (dat, index, array) {
switch (dat) {
});
exports.config = {
framework: 'jasmine2',
suites: suitesFile.suitesCollection,
capabilities: {
extendedDebugging: true,
browserName: desiredBrowser,
platformName: 'Windows 11',
name: testName,
shardTestFiles: true,
maxInstances: 9,
chromeOptions: {
'args': ['disable-infobars', '--ignore-certificate-errors'],
useAutomationExtension: false,
prefs: {
download: {
'prompt_for_download': false,
'directory_upgrade': true,
'default_directory': process.cwd() + '\downloads'
}
}
},
}
Beta Was this translation helpful? Give feedback.
All reactions