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

Be able to use xpath conditions from within Find, FindMultiple and Exists #42

Open
ThomasPoucher opened this issue Mar 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ThomasPoucher
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Would like the flexibility to be able to do xpath in the majority of methods. Currently you have to use XPath specific methods. This should work as a condition so can be used in multiple methods. Needs investigating whether this is possible.

Describe the solution you'd like
Would like to be able to do the following...
Find(x => x.ByXpath(".//[@SomeAttribute='SomeValue']"));
FindMultiple(x => x.ByXpath(".//
[@SomeAttribute='SomeValue']"));
Exists(x => x.ByXpath(".//[@SomeAttribute='SomeValue']"));
AutomationElement.FindFirstDescendant(x => x.ByXPath(".//
[@SomeAttribute='SomeValue']"));

Describe alternatives you've considered
Creating XPath methods for all core functions

Additional context
Being built into the conditions would give us significant flexibility in methods and prevent lots of methods finding parents and waiting for variable updates

@ThomasPoucher ThomasPoucher added the enhancement New feature or request label Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant