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

New Helper method in XenonElementsFinder #56

Open
adeel41 opened this issue Mar 20, 2017 · 1 comment
Open

New Helper method in XenonElementsFinder #56

adeel41 opened this issue Mar 20, 2017 · 1 comment

Comments

@adeel41
Copy link
Contributor

adeel41 commented Mar 20, 2017

I find repeatedly using following xpath statement in some of my tests. e.g.

<table>
 <tr>
  <td>Booking Fee</td>
  <td><button>Button</button></td>
 </tr>
 <tr>
  <td>Registration Fee</td>
  <td><button>Button</button></td>
 </tr>
</table>

So to click the button where Booking Fee is, I need to write xpath like this
//*[contains(text(), 'Booking Fee')]/following-sibling::td/button"

I think it should be in XenonElementsFinder but not sure on name of the thing.

@adeel41
Copy link
Contributor Author

adeel41 commented Apr 12, 2017

another example could be Click( $"//a[@class='UserNameDetailsLink']/contains(text(), '{name}')/parent::td/preceding-sibling::td/input[@type='checkbox']" ); which suggests that it would be super useful if we can also specify navigations when asking which element to find

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

No branches or pull requests

1 participant