wda_lib 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dbd83bac282cb07baaf4a2b4c244db812100fdc
4
- data.tar.gz: 6f625a89d46d6d071f4aca3a870b51de24b371ea
3
+ metadata.gz: f53d350f63eecdc841f7a4047d3c4b3cdf065e8c
4
+ data.tar.gz: 0e77a46669330056eaa388371669b8003feac410
5
5
  SHA512:
6
- metadata.gz: ac94df10e0e752f77cb6272cbc9c161df2b73f68fb01266b2efefa3c89a90b3a17e090e8f01634223cfffae5b905b9ced9794fdb7403087e0fd7c22e9a6af396
7
- data.tar.gz: 9c2d83e01660cb774480c8bf66f9ac5156369b8976ce9f13376e5809b025144103befa800acca25f787bcadcb651737c96228475ae85bd4fc17aeebf3b3ae293
6
+ metadata.gz: f2881fdb5c82561b62ddd31c553be7715140227e72c0745d70177b7b368f01f85fc34aab3868b3c80d6b89d85ed29c198604fc01f64e56db49e3e93c11b99938
7
+ data.tar.gz: bc2410e5125853e205e09046f635541a609a2b8d1c336317240b7a14ba7e3e45a3f8aaed8b5394d4d9bbd3434729f21664c94c80280c02d3267d11e07d97fec2
data/lib/wda_lib/debug.rb CHANGED
@@ -1,12 +1,16 @@
1
1
  class WDA
2
2
  module Debug
3
3
 
4
- # Get all elements on the screen
5
- def source(session_id = nil, accessible = true)
4
+ # Get all elements on current screen
5
+ # @param session [String], accessible [Boolean], visible [Boolean]
6
+ # When accessible is true, ignore all elements except for the main window for accessibility tree
7
+ # When accessible is false, and visible is true, ignore all invisible elements
8
+ # @return [Hash]
9
+ def source(session_id = nil, accessible = true, visible = true)
6
10
  if session_id.nil?
7
- post(@base_url + '/source', { accessible: accessible })
11
+ post(@base_url + '/source', { accessible: accessible, visible: visible })
8
12
  else
9
- post '/source', { accessible: accessible }
13
+ post '/source', { accessible: accessible, visible: visible }
10
14
  end
11
15
  end
12
16
 
@@ -1,3 +1,3 @@
1
1
  class WDA
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wda_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - MIN Yi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-06 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake