Skip to content

About

🎁 Appium Ruby Console

Resources

Code of conduct

Security policy

Stars

47 stars

Watchers

12 watching

Forks

Repository files navigation

Downloads

Appium Ruby Console

How to use

  1. Setup Appium
  2. Install appium_console
    gem uninstall appium_lib
    gem uninstall appium_console
    gem install appium_console
  3. Run
    • The arc command starts Appium Ruby Console.
      • arc help prints a description of all available commands
      • arc version prints the current version of appium console and appium lib.
      • arc setup android creates appium.txt for android in the current working dir.
      • arc setup ios creates appium.txt for ios in the current working dir.
      • Setup preserves an existing appium.txt. Add --force to overwrite it.
      • arc toml FILE starts arc with toml FILE path
      • arc multi opens a console where you start and stop each session yourself.

Using the configured session

arc, arc init, and arc toml FILE start the configured session. The console exposes that session as $driver and makes commands such as get_source available at the prompt and in page objects. Exit the console to close the session.

Managing multiple sessions

Run arc multi and load a configuration for each device. Keep each driver in its own variable and call commands on the driver you want to use.

ios = Appium::Driver.new(Appium.load_appium_txt(file: 'ios.txt'), false)
android = Appium::Driver.new(Appium.load_appium_txt(file: 'android.txt'), false)
ios.start_driver
android.start_driver

ios.get_source
android.get_source

ios.driver_quit
android.driver_quit

Documentation

Development

Run bundle install, then bundle exec rake test and bundle exec rake rubocop. Tests run without an Appium server or device.

Changelog

  • 4.0.0
    • Drop Ruby 2.7 support
  • 3.0.0
    • Update ruby_lib version to v12

Releasing

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

About

🎁 Appium Ruby Console

Resources

Code of conduct

Security policy

Stars

47 stars

Watchers

12 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages