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

Landscape orientation + stepToTapScreenAtPoint #112

Closed
haemi opened this issue Feb 8, 2012 · 3 comments
Closed

Landscape orientation + stepToTapScreenAtPoint #112

haemi opened this issue Feb 8, 2012 · 3 comments

Comments

@haemi
Copy link

haemi commented Feb 8, 2012

Hi,

first of all: great library, makes testing really fun!

Unfortunately, the "stepToTapScreenAtPoint" doesn't work when used in landscape mode. I've got an iPad app and I would like to test landscape behaviour with the stepToTapScreenAtPoint-functionality, but it seems like the UIWindow-hittest always calculates in portrait mode, so the desired view is never found...

I've got no idea how the solution could look like, unfortunately...

@moredip
Copy link
Contributor

moredip commented Feb 8, 2012

Hi Haemi,

I've discovered that same issue in our landscape-only app. Can you try the fix I have on my orientation-fix branch and see if it resolves the issue for you?

Cheers,
Pete

@haemi
Copy link
Author

haemi commented Feb 10, 2012

I'm afraid it's not 100% right - it looks better and promising, but it's not perfect.

Please find attached a test project at

http://dl.dropbox.com/u/119600/transfer/KIF.zip

In that app, I made an iPad app with loooots of 5x5 UIButtons, containing a title representing their position, e.g. the UIButton with the CGRectFrame(50, 120, 5, 5) contains the title "50 120".

Now, I did a test which taps the app at position

  1. 20, 30
  2. 100, 150
  3. 200, 300

And the buttons at those positions are

  1. 30 725
  2. 150 645
  3. 300 545

Thanks a lot for your help, it's really appreciated!

(Sorry, would have posted it earlier, but I confused two issues and posted in the wrong one...)

@phatmann
Copy link
Contributor

phatmann commented Apr 9, 2014

Closing all KIF 1 issues as it will no longer be maintained.

@phatmann phatmann closed this as completed Apr 9, 2014
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

3 participants