lib/ruby_app/scripts/elements/buttons.rb in RubyApp-0.5.58 vs lib/ruby_app/scripts/elements/buttons.rb in RubyApp-0.5.59

- old
+ new

@@ -1,14 +1,14 @@ load_script! 'common/features' -add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Buttons') } +add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Buttons') } add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Buttons') } add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Button') } add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Button') } add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You are on this page.') } add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') } add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') } add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') } -add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.refresh_browser } +add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }