-
Notifications
You must be signed in to change notification settings - Fork 918
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
Create page objects with KIF #853
Comments
Can you share some code? I have done something similar in the past and I had no issues like this, |
let's say we have Login screen to test, so i would like to create LoginPageObject
i created this class with i managed to fix this by using "tester-like" macro, placed in LoginPageObject:
now it seems to be work fine, but i don't want to invoke methods on macro |
This was "fixed" by #849, which basically forces you to use the macro approach. So your workaround is correct. I am hoping we can get rid of the macros at some point. But for now we are stuck with them. |
for that, entire exception handling mechanism would have to change, now i'm aware of this. |
If you can find a macro-less solution that @bnickel approves of, you will be the new KIF hero :-) |
Just update for those that want to make Page Object before kif refactor - the workaround i made seems to be working for KIF, but don't work for OCMockito, xcode just mark line that failed in PageObject class, in tests it's not visible |
Thanks for the update. |
Is it possible to make something similar in Swift (since there are no macros in Swift)? |
Hi, i wanted to create PageObjects with KIF, so i extended KIFTestActor and create helpers for each sceen in app.
Now the problem is that every exception make crash.
How should i init objects that inherit from KIFTestActor?
The text was updated successfully, but these errors were encountered: