Cannot read property 'name' of undefined #43
Unanswered
xbrys31
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.
-
Hello,
I'm trying to migrate from protractor to webdriverIO.
But th codemod fail to process one file.
npx jscodeshift -t ./node_modules/@wdio/codemod/protractor --parser=tsx ./e2e/support/screenplay/interactions/select.interaction.ts
ERR ./e2e/support/screenplay/interactions/select.interaction.ts Transformation error (Cannot read property 'name' of undefined)
TypeError: Cannot read property 'name' of undefined
interactions.zip
actor.zip
This line "element.element($(
option[value=${value}]
)).click()" seems to be the problemif i replace the "$" by "by.css",
element.element(by.css(
option[value=${value}]
)).click()the codemod process the file without errors.
Don't you think codemod could manage the "$" ? at least when we have element($ .....
Regards,
Xavier
Beta Was this translation helpful? Give feedback.
All reactions