React Native automation testing using appium, run on Android emulator


I have a script testcase using appium with ruby, here’s my config file:

require 'selenium-webdriver'
require 'appium_lib'

class AppiumWorld
  def capabilities
        'platformName' => 'Android',
        'deviceName' => 'Samsung Galaxy S6',
        'platformVersion' => '6.0',
        'apppackage' => 'com.btaskee',
        'appactivity' => 'com.btaskee.MainActivity',
        'androidDeviceReadyTimeout' => 10,
        'dontStopAppOnReset' => true,
        'app' => File.expand_path('../android/app/build/outputs/apk/app-debug.apk', Dir.pwd),

  def server_url

def selenium
  @driver ||= Selenium::WebDriver.for(:remote, :desired_capabilities =>, :url =>

In the other file, I run the testcase using this code:

action = 200, start_y: 200, offset_x: 200, offset_y: 500, duration: 500)

And I’m getting an error:

undefined method `device_is_android?' for nil:NilClass (NoMethodError)

I’m using appium 1.7.1
Please help !!!


Hi, I am learning react native and was wondering if you could answer. Do you use Appium or Selenim for ui automation tests on react native?
Do you have some good suggestions to look at how to do that, like tutorials, links, articles etc?
Why not using yest for react native? (I havent used yest either but heard lots of people recommending it)