appium_lib 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/docs/android_docs.md +99 -99
- data/docs/ios_docs.md +102 -102
- data/lib/appium_lib/android/helper.rb +14 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/readme.md +11 -0
- data/release_notes.md +7 -0
- metadata +5 -2
@@ -382,4 +382,18 @@ module Appium::Android
|
|
382
382
|
def fast_duration
|
383
383
|
0.20
|
384
384
|
end
|
385
|
+
|
386
|
+
# Search strings.xml's values for target.
|
387
|
+
# @param target [String] the target to search for in strings.xml values
|
388
|
+
# @return [Array]
|
389
|
+
def search_id target
|
390
|
+
mobile :searchId, target
|
391
|
+
end
|
392
|
+
|
393
|
+
# Resolve id in strings.xml and return the value.
|
394
|
+
# @param id [String] the id to resolve
|
395
|
+
# @return [String]
|
396
|
+
def resolve_id id
|
397
|
+
mobile :resolveId, id
|
398
|
+
end
|
385
399
|
end # module Appium::Android
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
module Appium
|
3
3
|
# Version and Date are defined on the 'Appium' module, not 'Appium::Common'
|
4
|
-
VERSION = '0.5.
|
5
|
-
DATE = '2013-06-
|
4
|
+
VERSION = '0.5.10' unless defined? ::Appium::VERSION
|
5
|
+
DATE = '2013-06-17' unless defined? ::Appium::DATE
|
6
6
|
end
|
data/readme.md
CHANGED
@@ -76,3 +76,14 @@ Appium::Driver.new(apk).start_driver
|
|
76
76
|
- [Overview](https://github.com/appium/ruby_lib/blob/master/docs/docs.md)
|
77
77
|
- [Android methods](https://github.com/appium/ruby_lib/blob/master/docs/android_docs.md)
|
78
78
|
- [iOS methods](https://github.com/appium/ruby_lib/blob/master/docs/ios_docs.md)
|
79
|
+
|
80
|
+
Print the currently active activity using Pry.
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
def current_app
|
84
|
+
pair = `adb shell dumpsys window windows`.each_line.grep(/mFocusedApp/).first.split(' ').last.gsub('}','').split('/')
|
85
|
+
{ pkg: pair.first, act: pair.last }
|
86
|
+
end
|
87
|
+
|
88
|
+
current_app
|
89
|
+
```
|
data/release_notes.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#### v0.5.9 2013-06-11
|
2
|
+
|
3
|
+
- [ac76a23](https://github.com/appium/ruby_lib/commit/ac76a23ca4c7f5bb89a833937cc726654fa2df82) Release 0.5.9
|
4
|
+
- [b377791](https://github.com/appium/ruby_lib/commit/b3777911709538a230d1fd3be31ae21f72040b00) Update readme.md
|
5
|
+
- [893737a](https://github.com/appium/ruby_lib/commit/893737a6033ed7c8e6f1c31f5b45f65b841320c2) Add current_activity
|
6
|
+
|
7
|
+
|
1
8
|
#### v0.5.8 2013-06-04
|
2
9
|
|
3
10
|
- [91f5c2f](https://github.com/appium/ruby_lib/commit/91f5c2f2bd388c1d4c4e771d2abea3772197de9c) Release 0.5.8
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appium_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: selenium-webdriver
|
@@ -148,6 +148,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- - ! '>='
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
hash: -2471542910602460749
|
151
154
|
requirements: []
|
152
155
|
rubyforge_project:
|
153
156
|
rubygems_version: 1.8.25
|