appium_lib 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.1' unless defined? ::Appium::VERSION
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
@@ -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
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com