Skip to content

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

@frameq

Description

@frameq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions