atspi_app_driver 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/atspi_app_driver.rb +6 -2
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2130dd15b10250f87e0ec032983a4f517c31189f
4
- data.tar.gz: 4d7ae7e9912293c4dab3ba40fd0a6d7924c20c2d
3
+ metadata.gz: 7d930d5773b89a6c889d32f0e9df0eec9d7e79c9
4
+ data.tar.gz: eba633cc38136f387b44ac15381975898636f582
5
5
  SHA512:
6
- metadata.gz: e938a9cc4fb4330a89dbd05cfc4b5b675ba1ea0956e24cdde50e38fc65f0ca6c20dadeface5682ba0d9d7ec0014753903d9f55f99a8c1ebcb5164e145654c547
7
- data.tar.gz: b74dd470c8ecea4102c7f04b37f65d31601cc67d811d55706df5d169cd64e261d9ae530c5c9e07a779d55343ead70aa0eea76b38d7ab64515c6d963799fb4cfe
6
+ metadata.gz: 13689dc202b10b4dfbcf71cd15ea9c58183eb590a7b211838393235ece69eb7d24388f73d7b5cbf53d2b3dc50ae193c2d5c54734bee4d40e5be63b1898d6ae9b
7
+ data.tar.gz: ae55b5cf166916508a90225ade3757495199e65f3f7b1fa2fdc5c78e744ee3a3a116f68eedce0eea4d0289d0ad4ab5dd7edb0a45127d31367a0fb0c07bc745d0
@@ -87,8 +87,12 @@ class AtspiAppDriver
87
87
  raise 'App not found' unless acc
88
88
 
89
89
  frame = acc.get_child_at_index 0
90
- frame.role.must_equal :frame
91
- frame.grab_focus
90
+ role = frame.role
91
+ raise "Frame has unexpected role #{role.inspect}" unless role == :frame
92
+
93
+ wait_for('frame to be focused', 10) do
94
+ frame.get_state_set.get_states.to_a.include? :active
95
+ end
92
96
 
93
97
  frame
94
98
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atspi_app_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-20 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gir_ffi
@@ -88,3 +88,4 @@ signing_key:
88
88
  specification_version: 4
89
89
  summary: Test GNOME applications using Atspi
90
90
  test_files: []
91
+ has_rdoc: