Skip to content
Aliaksandr Ikhelis edited this page Oct 12, 2014 · 13 revisions

Run calabash-android tests in RubyMine

See this answered at Stackoverflow

Try out a page object, or explore AUT UI

A great way to play with and debug Page objects is by using calabash-console, an irb with pre-loaded calabash code. We extended it with a custom irbrc file so that it also loads our support modules and page models. You can enter the console mode by running calabash:console rake task

$ rake calabash:console
Starting calabash-android console...
Loading /Users/aliaksandr/dev/test/android-test/irbrc
Running irb...
Loading blinkbox Books support code...

irb(main):001:0> include PageObjectModel
Object < BasicObject

irb(main):002:0> anonymous_library_page.displayed?
true

irb(main):003:0> anonymous_library_page.open_
anonymous_library_page.open_drawer_menu      anonymous_library_page.open_first_book       anonymous_library_page.open_menu_and_signin  anonymous_library_page.open_timeout
anonymous_library_page.open_entry            anonymous_library_page.open_menu             anonymous_library_page.open_option_button    anonymous_library_page.open_timeout=

irb(main):003:0> anonymous_library_page.open_menu
D, [2014-10-12T22:42:00.868439 #12083] DEBUG -- : Delegating method call #tap_when_element_exists({:timeout=>5}) for selector "* id:'togglebutton_home'" to calabash

Clone this wiki locally