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

consider adding SeleneCollection#each method #39

Open
yashaka opened this issue Dec 29, 2016 · 0 comments
Open

consider adding SeleneCollection#each method #39

yashaka opened this issue Dec 29, 2016 · 0 comments

Comments

@yashaka
Copy link
Owner

yashaka commented Dec 29, 2016

GIVEN html:

<div>
   <div class="parent"> <div class="inner"> ... </div> ... </div>
   <div class="parent"> <div class="inner special"> ... </div> ... </div>
   <div class="parent"> <div class="inner special"> ... </div> ... </div>
</div>

THEN find all .parent where .inner is also .special by

ss(".inner").filtered_by(have.css_class("special")).each(by_xpath(".."))
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