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

Click an element using xpath selector #35

Open
adeel41 opened this issue Jan 12, 2015 · 0 comments
Open

Click an element using xpath selector #35

adeel41 opened this issue Jan 12, 2015 · 0 comments
Milestone

Comments

@adeel41
Copy link
Contributor

adeel41 commented Jan 12, 2015

Click(where => where.TextIs("....")) clicks the first element where text is .... but in some situations there can be more buttons with same text and you need to click an element which is at a specific position.

We can either add a new optional parameter which is positionAt in Click method and default value could be 0 Or we can add a new method ClickWhereXpath(string xpath) and then in xpath we can include position selector e.g. ClickWhereXpath("//button[text() = 'Delete'][2]")

@jrote1 jrote1 added this to the 0.1.3 milestone Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants