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

how to find element by text #4

Open
paramadeep opened this issue Jun 5, 2015 · 1 comment
Open

how to find element by text #4

paramadeep opened this issue Jun 5, 2015 · 1 comment

Comments

@paramadeep
Copy link

I have a scenario to locate an element by its containing text.
For example,
page.find("#product",:text => "shampoo")
How can I define this element in Capypage?

@paramadeep
Copy link
Author

also if I have a part of my selector dynamic, how could I define element.
For example
page.find('#product[name="shampoo"]')
where the name attribute would change for every product, and I have to locate the product by its name.

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