Appium Ruby Console
How to use
- Setup Appium
- Read a setup guide
- Install
appium_consolegem uninstall appium_lib gem uninstall appium_console gem install appium_console
- Run
- The
arccommand starts Appium Ruby Console.-
arc helpprints a description of all available commands -
arc versionprints the current version of appium console and appium lib. -
arc setup androidcreatesappium.txtfor android in the current working dir. -
arc setup ioscreatesappium.txtfor ios in the current working dir. - Setup preserves an existing
appium.txt. Add--forceto overwrite it. -
arc toml FILEstarts arc with toml FILE path -
arc multiopens a console where you start and stop each session yourself.
-
- The
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_quitDocumentation
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.