Created
September 15, 2014 19:03
-
-
Save Jonahss/5ca4000cf7f31988e581 to your computer and use it in GitHub Desktop.
appium_lib_example_in_progress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'spec' | |
require 'appium_lib' | |
require 'minitest/spec' | |
require 'minitest/autorun' | |
desired_capabilities = { | |
'platformName' => "Android", | |
'platformVersion' => "4.4", | |
'deviceName' => "Android S4", | |
'appPackage' => "home.jmstudios.calc", | |
'appActivity' => "Main", | |
'newCommandTimeout' => 100000 | |
} | |
Appium::Driver.new(caps: desired_capabilities).start_driver | |
Appium.promote_appium_methods Object | |
print buttons.size | |
describe "clean-calculator" do | |
it "has a text field" do | |
textfield(0).wont_be_nil | |
end | |
it "it has a bunch of buttons" do | |
assert_operator buttons.size, :>, 3 | |
end | |
end | |
x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment