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

Support contextual / restricted finds #6

Open
melcher opened this issue Oct 1, 2014 · 1 comment
Open

Support contextual / restricted finds #6

melcher opened this issue Oct 1, 2014 · 1 comment

Comments

@melcher
Copy link
Member

melcher commented Oct 1, 2014

I want to be able to test something like

  var employees = find('table.employees');
  expect(find("Joe", employees)).toBeVisible();

or maybe

  var employees = find('table.employees');
  within(employees, function(){
    expect(find('Joe')).toBeVisible();
  });

The point being that it only searches within a subset of the entire page.

@blakewest
Copy link
Contributor

In using this, I agree this would totally be helpful. +1

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