Protractor Page Objects Conversion to WDIO #110
Unanswered
Bapugit
asked this question in
Migration Issue
Replies: 1 comment
-
Can be changed to
This codemod is an excellent tool to help with this migration, if there is something we can add to the codemod please submit a PR so it can help others too. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have so many existing protractor scripts, I am looking for the best strategy to migrate it. I am using Codemod as well.
In Protractor, I have used xpaths with the following syntax like userName=by.xpath('//input[@id="userName"]')
but it's not working in WDIO(I am using Mocha with WDIO V8, Chromedriver and Sauce services).
I have so many files, is there any possibility to re-use my existing page Object, or do I need to change those to WDIO format like
userName = $('[id='userName']')?
It will be very tough if I need to manually change all these Objects.
Pls help me what is the best way to re-use my existing PageObjects?
Beta Was this translation helpful? Give feedback.
All reactions