moredip / Frank

Automated acceptance tests for native iOS apps
www.testingwithfrank.com
Apache License 2.0
1.21k stars 237 forks source link

y coordinate of non 4-inch supported apps in iPhone (Retina 4-inch) seem to be wrong #140

Open hiroshi opened 12 years ago

hiroshi commented 12 years ago

I'v just started reading Recipe 27 of the book "Cucumber Recipes".

When I did:

$ frank console
connecting to app... connected
[1] pry(#<Frank::Console>)> touch "button marked:'8'" => nil

with "iPhone (Retina 4-inch)" simulator, , button 'C' is pressed instead of '8'. With "iPhone (Retina 3.5-inch)", button '8' is pressed as we expected.

I suppose the coordinates must be wrong with non 4-inch supported app in 4-inch simulators. I don't know about 4-inch devices like iPhone 5 cause I don't have any.

moredip commented 12 years ago

Thanks for reporting this. Can you tell me which version of Frank you're using?

Cheers,

Pete

Typed on a little bitty keyboard

On Oct 23, 2012, at 12:34 AM, Hiroshi Saito notifications@github.com wrote:

I'v just started reading Recipe 27 of the book "Cucumber Recipes".

When I did:

$ frank console connecting to app... connected [1] pry(#Frank::Console)> touch "button marked:'8'" => nil with "iPhone (Retina 4-inch)" simulator, , button 'C' is pressed instead of '8'. With "iPhone (Retina 3.5-inch)", button '8' is pressed as we expected.

I suppose the coordinates must be wrong with non 4-inch supported app in 4-inch simulators. I don't know about 4-inch devices like iPhone 5 cause I don't have any.

— Reply to this email directly or view it on GitHub.

hiroshi commented 12 years ago

Sorry, I forgot to mention about the version.

$ gem list frank

*** LOCAL GEMS ***

frank-cucumber (1.1.0)
moredip commented 12 years ago

Thanks, this definitely looks like a bug. Thanks again for taking the time to report it.

Is this a blocker for you? I would assume that you could work around it by just asking the simulator to run as a 3.5" device.

hiroshi commented 12 years ago

Not at all.

For me, I just did experiment Frank, not using for real test yet.