Appium Capybara rotate - undefined method?

I currently have a driver set up like so:

require 'rspec/expectations'
require 'capybara/cucumber'
require 'capybara/poltergeist'
require 'appium_lib'
require 'cucumber/ast'
require 'appium_capybara'

desired_caps_appium_emulator = {
  platform:        "Android",
  deviceName:      "android",
  platformName:    "Android",
  platformVersion: "4.2.2",
  uuid:            "Test", 
  browserName:     "Browser"}

url = "http://localhost:4723/wd/hub"  

Capybara.register_driver :appium_android_emulation_test do |app|
    appium_lib_options = {
      server_url:           url
    all_options = {
      appium_lib:  appium_lib_options,
      caps:        desired_caps_appium_emulator
    } app, all_options

and am trying to invoke the rotate method in my steps.rb as a part of the appium_capybara gem - but I’m told it’s undefined. What am I missing?

Sorry - obviously using ruby here, along with Capybara…

Hello Kj,


I am new to appium- Mobile Automation, trying to make a simple mobile browser automation demo. My goal is to use appium with capybara along with Ruby, so that the appium inherits all capybara DSL. Please can you help me with any sample code, so that it can help me with start up. It will be a great help.