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

Unexpected: page(LoginPage) expects an IOS::LoginPage to be defined #5

Open
jmoody opened this issue Jun 26, 2015 · 1 comment
Open
Assignees

Comments

@jmoody
Copy link
Contributor

jmoody commented Jun 26, 2015

Reproduce

Given that I have a class:

class LoginPage < Calabash::IOS::Page
end

Expected

page(LoginPage) 

not to fail.

Found

[3] pry(#<Object>)> page(LoginPage)
RuntimeError: No such page defined 'IOS::LoginPage'
from /Users/moody/git/calabash/calabash/lib/calabash.rb:91:in `page'

Is this the expected behavior?

@TobiasRoikjer
Copy link
Contributor

I have removed Android::Page and IOS::Page.

# old
class LoginPage < Calabash::Android::Page

# new
class LoginPage < Calabash::Page
    include Calabash::Android

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

2 participants