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

Copy xpath of current element in xml doc - FR #85

Closed
jgstew opened this issue Jan 4, 2017 · 9 comments
Closed

Copy xpath of current element in xml doc - FR #85

jgstew opened this issue Jan 4, 2017 · 9 comments

Comments

@jgstew
Copy link

jgstew commented Jan 4, 2017

Feature Request:

Is there currently an option to copy the current xpath of a selected element within an open XML doc?

I use this function all the time in some other editors and am trying to get the same functionality to work within VS Code. I've installed this extension but it doesn't seem to do that. If possible, I'd like to see this functionality added.


There is an extension that provides this functionality to Visual Studio (not VS Code) here:

Notepad++ extension:

@DotJoshJohnson
Copy link
Owner

Thanks for the suggestion! This is a feature I've been wanting to add, I just haven't had the time recently to do it. I'm hoping to pick this project back up again in a week or two, so perhaps I can squeeze this one in.

@MrLesh
Copy link

MrLesh commented Mar 21, 2017

Hi Josh,
Is that implemented already? I was looking for the exact same thing...

@DotJoshJohnson
Copy link
Owner

@MrLesh, no I unfortunately haven't had time yet to revisit this extension. If anyone gets to it before me and wants to submit a PR, I'm more than happy to merge it in! :)

@cori
Copy link

cori commented Apr 13, 2017

As an alternative or addition to this enhancement, it would be handy to show the xpath to the currently selected node in the status bar (or somewhere else)

@MetalBlueberry
Copy link

I need this too!!

@jleclanche
Copy link

@cori +1 on showing the xpath in the status bar! the extension JSONPath StatusBar (richie5um2.vscode-statusbar-json-path) does exactly that for JSON, it'd be really cool to have that here too.

@DotJoshJohnson DotJoshJohnson added this to the Backlog milestone Apr 29, 2018
@DotJoshJohnson DotJoshJohnson modified the milestones: Backlog, Release: v2.2.0 May 28, 2018
@DotJoshJohnson DotJoshJohnson self-assigned this May 29, 2018
DotJoshJohnson added a commit that referenced this issue May 30, 2018
This commit also moves some shared code to a common class.

Issue: #85
@DotJoshJohnson
Copy link
Owner

This will be in the next release, albeit in an "experimental" state. Please feel free to beat up the feature a bit and report back any bugs. Thanks!

@DotJoshJohnson DotJoshJohnson removed their assignment May 30, 2018
@Teodor-Tenev
Copy link

Great work, but I still can't get the correct xPath. When extracting I receive /AppiumAUT/XCUIElementTypeApplication/XCUIElementTypeWindow[10] instead of /AppiumAUT/XCUIElementTypeApplication/XCUIElementTypeWindow[1]

@DotJoshJohnson
Copy link
Owner

Hi, @Phoenixcat - Can you submit a new issue with a copy of the XML that you're having trouble with? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants