You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: