My application uses a TabViewController and I would like to write a
test that navigates to each tab page and does something on that page.
I'm probably being dense but I can't work out how to do it - does
anyone have any pointers?
cheers
Perryn
[[app.tabBar.label.with text:@"My Tab Name"] touch];
Thanks, but what I wanted was to be able to specify some checks that
would be run on *every* tab page, ideally without having to hardcode
the names of each tab.
I ended up monkey-patching UIQuery to add an 'each' method that
invokes a callback for each thing matched by the traversal, so I can
do something like
- (void)checkTabPage:(UIQuery *)tabLabel {
[[tabLabel parent] touch];
//do other stuff
}
[app.tabBar.label each:@selector(checkTabPage:) object:self];
happy to contribute back to the project if you are intersted
cheers
Perryn
> --
> You received this message because you are subscribed to the Google Groups "UISpec" group.
> To post to this group, send email to uis...@googlegroups.com.
> To unsubscribe from this group, send email to uispec+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/uispec?hl=en.
>
>
>
>
--
-----------------------
Perryn Fowler
ThoughtWorks