GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - appium/ruby_lib: :gem: Ruby library for Appium

BranchesTags
Open more actions menu

Latest commit

 

History

1,661 Commits
1,661 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
android_tests
android_tests
 
 
docs
docs
 
 
grid
grid
 
 
ios_tests
ios_tests
 
 
lib
lib
 
 
test
test
 
 
test_apps
test_apps
 
 
.gitignore
.gitignore
 
 
.release-please-manifest.json
.release-please-manifest.json
 
 
.rubocop.yml
.rubocop.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Gemfile
Gemfile
 
 
LICENSE-2.0.txt
LICENSE-2.0.txt
 
 
RELEASING.md
RELEASING.md
 
 
Rakefile
Rakefile
 
 
appium_lib.gemspec
appium_lib.gemspec
 
 
contributing.md
contributing.md
 
 
readme.md
readme.md
 
 
release-please-config.json
release-please-config.json
 
 
release_notes.md
release_notes.md
 
 

Repository files navigation

appium_lib

Gem Version

Downloads

  • appium_lib on RubyGems
  • Documentation for appium_lib
    • Documentation for core lib
      • Especially driver method for Appium

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.

Recommend to use ruby_lib_core, which works as a Ruby client for Appium. ruby_lib wraps the core library with some additional helpful methods, but some of wrapped methods may have unexpected complexity. Ordinary, ruby_lib worked with class driver, $driver, mainly. We can avoid the class driver with current ruby_lib, but if you'd like to implement your test cases based on instance driver, @driver, you can consider using ruby_lib_core first.

See non-global drivers and migration for instance-based usage, Page Objects, and coexistence with legacy global drivers.

Setup

Requirement

  • Appium
  • Ruby: 3.1+

Ruby Lib and Appium

  • Ruby library version over 12.0.0 is based on Selenium v4
    • Please read changelog of 12.0.0 for more details to migrate from v11 to v12
  • Ruby library version over 9.8.0 requires Appium over 1.8
  • Ruby library version under 9.7.5 can work with Appium under 1.7

Start appium server

Appium 2

$ npm install --location=global appium
$ appium driver install xcuitest  # proper driver name to install
$ appium server

Note Please set server_url properly like the below for Appium v1.

 opts = {
   caps: {
     automationName: 'xcuitest'
     platformName: 'ios',
     app: '/path/to/MyiOS.app'
   },
   appium_lib: {
     server_url: 'http://127.0.0.1:4723/wd/hub'
   }
 }
 appium_driver = Appium::Driver.new(opts)
 appium_driver.start_driver

Appium 1

$ npm install -g appium
$ appium

Install / Upgrade

gem install appium_lib

Sauce Labs env vars

  • 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

  • Getting started
  • Overview
  • Ruby Android methods
  • Ruby iOS methods
    • Tips for XCUITest for iOS

Related libraries

  • ruby_lib_core: Bridged commands, WebDriver dependencies
    • We add new endpoints for Appium in the core library, and ruby_lib call the methods.
  • ruby_console: Appium Ruby Console
  • appium_capybara: Gem enabling appium support in capybara

Load Pry

Pry.config.pager = false is set if you have no .pryrc files and Pry is defined.

Run tests in parallel

This repository has examples for running tests in parallel. Read ios_tests to see them.

Contribute

How to add new commands for driver

  • Add the new commands in ruby_lib_core. An example

How to add new helpful methods

  • Add the new methods in this library

Releasing

Review and merge the Release Please PR to publish. See RELEASING.md for one-time Trusted Publishing setup and recovery instructions.

About

💎 Ruby library for Appium

rubygems.org/gems/appium_lib

Topics

appiumruby

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

218 stars

Watchers

31 watching

Forks

154 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.