First let me say thanks again to Ondrej whose FEX_forcedTouch is working well for me in most circumstances!
The first check in the new FEX_forcedTouch method is:
if ([[UIApplication sharedApplication] isIgnoringInteractionEvents]) {
return NO;
}
The problem I'm having is that sometimes displaying a "fancy dialog or symbolic menu" causes my app to go into the isIgnoringInteractionEvents state for a period of time. When this happens, and my client-side test case is too fast, I get a failure from the above check in the new FEX_forcedTouch. I don't like to hard-code waits, so I wrote a new method that I can call with Frank's app_exec feature. My new method, getAppIsIgnoringInteractionEvents, returns a True or False string depending on the same "if" in the logic above. I have a generic "WaitForState" method in my Python client that can wait for some state change, so I use this to wait for getAppIsIgnoringInteractionEvents to return False. It turned out that a delay of about .3 sec was required (on an iPad 2) for my app to return to the state where isIgnoringInteractionEvents is False!
Now for my question: Do you think this should be a built-in part of Frank (i.e. the ability to query the isIgnoringInteractionEvents state)? If so, what kind of API do you think it should be?
If we get some agreement on this I'd be happy to convert my implementation into an "inside Frank" implementation and submit a Pull Request (as always... employer approval permitting). Someone else would then have to write the Cucumber bits, 'cause I don't do Ruby.
Thanks,
Martin
--
You received this message because you are subscribed to the Google Groups "Frank" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frank-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.