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

Cached selectors don't re-query the DOM #63

Open
alexisabril opened this issue Nov 2, 2013 · 3 comments
Open

Cached selectors don't re-query the DOM #63

alexisabril opened this issue Nov 2, 2013 · 3 comments
Labels
Milestone

Comments

@alexisabril
Copy link
Contributor

No description provided.

alexisabril pushed a commit that referenced this issue Nov 2, 2013
@simoami
Copy link

simoami commented Dec 10, 2013

is this fixed? I think I hit the same issue, where I have:

F('.buttoncontainer button:enabled').visible().click();

The button is initially disabled, but doesn't get clicked when it becomes enabled.

@alexisabril
Copy link
Contributor Author

@simoami That actually looks like a separate issue. Can you file a new issue with a full description of what you're seeing?

The cache issue does involve chaining, however in a different context:

var foo = F('.foo'); //some element with class "foo" exists on the page, so the collection is length === 1

$('.foo').remove(); //some action that removes the element from the DOM

foo.missing(); //since the element is gone, this should pass the assertion, however the cached collection still has length === 1. missing() and other waits will need to re-query the DOM for $('.foo')

@simoami
Copy link

simoami commented Dec 10, 2013

Hi @alexisabril
My bad, false alert here. I was testing FuncUnit against ExtJS and realized that buttons are disabled by a class selector, not but dom attribute...A style class that makes the button look as if it was set to disabled.

Thanks for this great framework.

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

No branches or pull requests

4 participants