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

find/filter oddness #9

Open
kconnor opened this issue Aug 17, 2012 · 0 comments
Open

find/filter oddness #9

kconnor opened this issue Aug 17, 2012 · 0 comments

Comments

@kconnor
Copy link

kconnor commented Aug 17, 2012

The first two mechanic calls below behave as expected. The filter in the next call returns an empty set when I expected the same result as immediatlely prior. The second set of three mechanic calls reverse the selectors. Using UIATextField results in one element being returned (which is correct). mechanic does not like it if you try to chain a find or filter to a single element result. The filter returns an empty set (same as above, it should have returned the same element). The filter version just hangs which is probably just Instruments being unfriendly. I'm happy to help debug some more.

UIALogger.logMessage("find #account");
mechanic(signInWin).find('#account').logTree();

UIALogger.logMessage("find #account find UIATextField");
mechanic(signInWin).find('#account').find('UIATextField').logTree();

UIALogger.logMessage("find #account filter UIATextField");
mechanic(signInWin).find('#account').filter('UIATextField').logTree();

UIALogger.logMessage("find UIATextField");
mechanic(signInWin).find('UIATextField').logTree();

UIALogger.logMessage("find UIATextField filter #account ");
mechanic(signInWin).find('UIATextField').filter('#account').logTree();

UIALogger.logMessage("find UIATextField find #account ");
mechanic(signInWin).find('UIATextField').find('#account').logTree();

=>

2012-08-17 22:14:30 +0000 Default: find #account
2012-08-17 22:14:30 +0000 logElementTree:
UIATableCell "account" {{321, 254}, {381, 45}}
elements: {
UIATextField "account" {{341, 267}, {361, 43}}
}

2012-08-17 22:14:30 +0000 Default: find #account find UIATextField
2012-08-17 22:14:31 +0000 logElementTree:
UIATextField "account" {{341, 267}, {361, 43}}

2012-08-17 22:14:31 +0000 Default: find #account filter UIATextField
2012-08-17 22:14:31 +0000 Default: find UIATextField
2012-08-17 22:14:31 +0000 logElementTree:
UIATextField "account" {{341, 267}, {361, 43}}

2012-08-17 22:14:31 +0000 Default: find UIATextField filter #account
2012-08-17 22:14:31 +0000 Default: find UIATextField find #account
Instruments Trace Complete

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