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

[Feature Request]: handle xpath axis in the locator builder #1061

Closed
MohabMohie opened this issue Apr 18, 2023 · 0 comments · Fixed by #1120
Closed

[Feature Request]: handle xpath axis in the locator builder #1061

MohabMohie opened this issue Apr 18, 2023 · 0 comments · Fixed by #1120
Assignees
Labels
complex complex feature/issue requires time enhancement New feature or request java Pull requests that update Java code

Comments

@MohabMohie
Copy link
Contributor

MohabMohie commented Apr 18, 2023

Be able to do this:

SHAFT.GUI.Locator.hasTagName("div").onAxisWith().followingSibling("div").hasText("uniqueText").build();

Logic should be simple, onAxisWith() should call a nested class that has all the supported axis methods, it should manually override the locator builder to use xpaths only, and should build a new locator object with that tag name.

I believe full recursion should be possible so that we can keep using axis elements infinitely and eventually build.

@MohabMohie MohabMohie added enhancement New feature or request java Pull requests that update Java code complex complex feature/issue requires time labels Apr 18, 2023
@MohabMohie MohabMohie self-assigned this Apr 18, 2023
@MohabMohie MohabMohie linked a pull request May 13, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complex complex feature/issue requires time enhancement New feature or request java Pull requests that update Java code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant