Skip to content
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

Go to implementation not working for page object methods in WebStorm/VS Code #948

Open
frameq opened this issue Aug 9, 2021 · 0 comments

Comments

@frameq
Copy link

frameq commented Aug 9, 2021

Expected Behavior

After Ctrl + click on page object method IDE navigates to method implementation.

Current Behavior

IDE navigate to node_modules\nightwatch-api\types\nightwatch\index.d.ts:62

Steps to Reproduce (for bugs)

  1. Open project https://github.com/frameq/nightwatch-api-bug in WebStorm
  2. Go to step-definitions/steps.js
  3. Ctrl + click on google.submit() method

Context

Navigation working in project with nightwatch-cucumber!

I'm trying to migrate from nightwatch-cucumber to nightwatch-api. In old project navigation for page object working. But in project with nightwatch-api its failing. Maybe you can add some definitions from nightwatch-cucumber and IDE will recognize methods?

There are couple questions on this topic:
#942
#225
https://groups.google.com/g/nightwatchjs/c/AKfeKD_1Fjo/m/fqRyuT6-AwAJ
And and there are no solution. Please, help!

Your Environment

  • Version used: nightwatch-api = 3.0.1
  • Operating System and version (desktop or mobile): Windows 10
  • IDE: WebStorm 2021.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant