appium_lib 0.4.1 → 0.4.2
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.
- checksums.yaml +8 -8
- data/Rakefile +2 -1
- data/docs/android_docs.md +128 -92
- data/docs/ios_docs.md +129 -93
- data/lib/appium_lib/common/version.rb +1 -1
- data/lib/appium_lib/ios/helper.rb +15 -0
- data/release_notes.md +8 -0
- metadata +1 -1
@@ -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.4.
|
4
|
+
VERSION = '0.4.2' unless defined? ::Appium::VERSION
|
5
5
|
DATE = '2013-05-20' unless defined? ::Appium::DATE
|
6
6
|
end
|
@@ -105,6 +105,21 @@ module Appium::Ios
|
|
105
105
|
nil
|
106
106
|
end
|
107
107
|
|
108
|
+
# Gets the JSON source of window number
|
109
|
+
# @param window_number [Integer] the int index of the target window
|
110
|
+
# @return [JSON]
|
111
|
+
def source_window window_number=0
|
112
|
+
execute_script "UIATarget.localTarget().frontMostApp().windows()[#{window_number}].getTree()"
|
113
|
+
end
|
114
|
+
|
115
|
+
# Prints parsed page source to console.
|
116
|
+
# @param window_number [Integer] the int index of the target window
|
117
|
+
# example: page_window 0
|
118
|
+
def page_window window_number=0
|
119
|
+
get_page source_window window_number
|
120
|
+
nil
|
121
|
+
end
|
122
|
+
|
108
123
|
# The fastest duration that can be used on iOS.
|
109
124
|
# @return [Float]
|
110
125
|
def fast_duration
|
data/release_notes.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
#### v0.4.1 2013-05-20
|
2
|
+
|
3
|
+
- [cd8dd73](https://github.com/appium/ruby_lib/commit/cd8dd73461d6bdb8903a8b3f5bba9ce554a44789) Release 0.4.1
|
4
|
+
- [9e8cd0a](https://github.com/appium/ruby_lib/commit/9e8cd0a915e6c9c373ebd3a33a653c573f776636) Add status
|
5
|
+
- [978d489](https://github.com/appium/ruby_lib/commit/978d48964361ca36267b866b1fe69d0b09b3f273) Update docs
|
6
|
+
- [eb11923](https://github.com/appium/ruby_lib/commit/eb11923543a1e3e2fe8f19d2f09959cefd16fa05) Fix generic iOS methods
|
7
|
+
|
8
|
+
|
1
9
|
#### v0.4.0 2013-05-16
|
2
10
|
|
3
11
|
- [70a59fe](https://github.com/appium/ruby_lib/commit/70a59fefcaa4f16ba0e7629f16feaae3e5f8c424) Release 0.4.0
|