No commit activity in last 3 years
No release in over 3 years
Enable drivers to emulate iOS user agent.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 5.0
>= 0

Runtime

 Project Readme

capybara-ios_emulation_driver Build Status

Enable drivers to emulate iOS user agent.

capybara-ios-emulation-driver is renamed to capybara-ios_emulation_driver. v0.0.9 is the last version of capybara-ios-emulation-driver. Please use capybara-ios_emulation_driver instead of it.

Installation

Add this line to your application's Gemfile:

gem 'capybara-ios_emulation_driver'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capybara-ios_emulation_driver

Usage

# chrome
Capybara.register_driver :ios_chrome do |app|
  Capybara::Selenium::Driver::Ios.chrome_driver
end
Capybara.default_driver = :ios_chrome

# firefox
Capybara.register_driver :ios_ff do |app|
  Capybara::Selenium::Driver::Ios.firefox_driver
end
Capybara.default_driver = :ios_ff

# rack test
Capybara.register_driver :ios_rack_test do |app|
  Capybara::RackTest::Driver::Ios.rack_test_driver :app => app
end
Capybara.default_driver = :ios_rack_test

Contributing

  1. Fork it ( http://github.com/sunaot/capybara-ios_emulation_driver/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request