lib/gametel/accessors.rb in gametel-0.6 vs lib/gametel/accessors.rb in gametel-0.7
- old
+ new
@@ -253,8 +253,20 @@
end
define_method("#{name}_view") do
Gametel::Views::Image.new(platform, locator)
end
end
+
+ def webview(name, locator)
+
+ end
+
+ def action_item(name, locator)
+ define_method(name) do
+ platform.click_menu(locator)
+ end
+ end
+
+ alias_method :menu_item, :action_item
end
end