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 +4 -4
- data/lib/wda_lib/debug.rb +8 -4
- data/lib/wda_lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f53d350f63eecdc841f7a4047d3c4b3cdf065e8c
|
4
|
+
data.tar.gz: 0e77a46669330056eaa388371669b8003feac410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
5
|
-
|
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
|
|
data/lib/wda_lib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|