Appium Ruby Client
info
Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .
Flick Example
require 'test/unit'
require 'appium_lib'
class Untitled < Test::Unit::TestCase
def setup
desired_caps = {
caps: {
platformName: 'ios',
javascriptEnabled: true
},
appium_lib: {
server_url: 'http://localhost:4723/wd/hub'
}
}
@driver = Appium::Driver.new(desired_caps, false)
@driver.start_driver
end
def test_Untitled
@driver.execute_script("seetest:client.flick(\"Right\", \"100\")")
end
def teardown
@driver.driver_quit
end
end