#### appium_lib [![Gem Version](https://badge.fury.io/rb/appium_lib.svg)](http://badge.fury.io/rb/appium_lib) [![Dependency Status](https://gemnasium.com/appium/ruby_lib.svg)](https://gemnasium.com/appium/ruby_lib) [![Travis Master](https://travis-ci.org/appium/ruby_lib.svg?branch=master)](https://travis-ci.org/appium/ruby_lib/builds) [![Downloads](https://img.shields.io/gem/dt/appium_lib.svg)](https://rubygems.org/gems/appium_lib) [![Pull Requests](http://issuestats.com/github/appium/ruby_lib/badge/pr)](http://issuestats.com/github/appium/ruby_lib) [![Issues](http://issuestats.com/github/appium/ruby_lib/badge/issue)](http://issuestats.com/github/appium/ruby_lib) - [appium_lib on RubyGems](https://rubygems.org/gems/appium_lib) - [Documentation for appium_lib](https://github.com/appium/ruby_lib/tree/master/docs) - [Appium Ruby Console](https://github.com/appium/ruby_console) - [Getting Started](https://github.com/appium/appium/blob/master/docs/en/about-appium/getting-started.md) - [code examples](https://github.com/appium/sample-code/tree/master/sample-code/examples/ruby) Helper methods for writing cross platform (iOS, Android) tests in Ruby using Appium. Note that user waits should not exceed 120 seconds if they're going to run on Sauce Labs. Make sure you're using Appium 1.0.0 or newer and Ruby 2.2+ with upgraded rubygems and bundler. #### Start appium server ```bash $ npm install -g appium $ appium ``` #### Install / Upgrade - Update rubygems and bundler ```bash $ gem update --system $ gem update bundler ``` - Install the latest gem release ```bash gem uninstall -aIx appium_lib gem install --no-rdoc --no-ri appium_lib ``` #### [Sauce Labs env vars](https://github.com/appium/ruby_lib/blob/master/lib/appium_lib/sauce_labs.rb) - `SAUCE_USERNAME` Sauce username - `SAUCE_ACCESS_KEY` Sauce API key - `SAUCE_ENDPOINT` Alternative Sauce Appium Server endpoint (only use if directed) (Note: If these variables are set, all tests will use Sauce Labs unless over-ridden in configuration.) #### Documentation - [Installing Appium on OS X](https://github.com/appium/ruby_console/blob/master/osx.md) - [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md) - [Ruby Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md) - [Ruby iOS methods](https://github.com/appium/ruby_lib/blob/master/docs/ios_docs.md) - [Tips for XCUITest for iOS](https://github.com/appium/ruby_lib/blob/master/docs/ios_xcuitest.md) - [Appium Server docs](https://github.com/appium/appium/tree/master/docs) #### Load Pry `Pry.config.pager = false` is set if you have no `.pryrc` files and `Pry` is defined.