This VS Code extension allows you to navigate from locators in .feature files to their definitions in CSS properties files within SpecsCore projects by using Command+Click (Ctrl+Click).
Features
Navigate from locator names in .feature files to corresponding .css.properties files using Command+Click
Automatic locator definition discovery
User-friendly error messages
Usage
Open a .feature file
Command+Click (macOS) or Ctrl+Click (Windows/Linux) on a locator name in a line with this format:
When I click a 'LocatorName' 'xpath' with dynamic locator on the 'fileName'
The extension will automatically open Locators/fileName.css.properties file and navigate to the LocatorName definition
Supported Format
The extension supports this pattern:
When I click a 'LOCATOR_NAME' 'xpath' with dynamic locator on the 'FILE_NAME'
LOCATOR_NAME: The locator name to search for in the CSS properties file
FILE_NAME: The name of the .css.properties file in the Locators/ folder
File Structure
The extension supports SpecsCore project structure: