calabash / Calabash-2.0-x-platform

X-platform for 2.0
4 stars 5 forks source link

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

Open jmoody opened 9 years ago

jmoody commented 9 years ago

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 commented 9 years ago

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

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

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