appium/appium_capybara — pull request #14 by bootstraponline (2014-09-17 00:57:44+00:00)
Title: Use selenium driver by default

Capybara expects the browser object to be a selenium driver, not
an appium driver.

```ruby
# start a Pry session and paste the following code
require 'appium_capybara'

Capybara.register_driver(:appium) do |app|
opts = Appium.load_appium_txt file: File.join(Dir.pwd, 'appium.txt')
Appium::Capybara::Driver.new app, opts
end

Capybara.default_driver = :appium

capy_driver = Capybara.current_session.driver
capy_driver.browser
```

Notice that selenium methods will fail.

```ruby
> capy_driver.go_back
NoMethodError: undefined method `navigate' for # capy_driver.go_back
post /back
```

@sbonebrake Let me know what you think of these changes. I think the rest of the appium_capybara code will need to be updated. The benefit of this approach is all the [upstream methods](https://github.com/jnicklas/capybara/blob/da85ae722632b22895d505d405110538588a09a7/lib/capybara/selenium/driver.rb) such as `go_back` work properly.