-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to convert browser.actions() class #45
Comments
@SomeswararaoMarati as mentioned in the error message it is not feasible to transform these statements. They are too different in their syntax. Therefor unfortunately these lines have to be migrated manually. |
I will keep this open in case someone wants to tackle this challenge. PRs welcome! |
There is a work around on this issue, by commenting out browser.actions() or Key, and migrate the script. if this a large file then you can create a file that will point where you need to comment out. EX:
You can run this file using node index.js file/path
Hope this helps!!! |
Hi,
Migrate Command is giving an error while converting the following.
await browser.actions().doubleClick(this.btnDoubleClick).perform();
await browser.actions().mouseDown(this.btnDoubleClick).mouseUp().perform();
await browser.actions().mouseMove(this.btnDoubleClick).click().perform();
ERR ./protractorTests/pages/buttons.page.js Transformation error (Error transforming ./protractorTests/pages/buttons.page.js:16)
Error transforming ./protractorTests/pages/buttons.page.js:16
Can not transform "actions" command as it differs too much from the WebdriverIO implementation. We advise to refactor this code.
For more information on WebdriverIOs replacement command, see https://webdriver.io/docs/api/webdriver#performactions
at ./protractorTests/pages/buttons.page.js:16:14
All done.
Results:
1 errors
0 unmodified
0 skipped
0 ok
action commands from protractor are ot able to migrate
The text was updated successfully, but these errors were encountered: