RubyApp 0.6.26 → 0.6.27

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.
@@ -133,15 +133,15 @@ module RubyApp
133
133
  end
134
134
 
135
135
  def click_link(text)
136
- self.click_selector("a:contains('#{text}')")
136
+ self.click_selector("a:visible:contains('#{text}')")
137
137
  end
138
138
 
139
139
  def click_list_item(text)
140
- self.click_selector("a.item:contains('#{text}')")
140
+ self.click_selector("a.item:visible:contains('#{text}')")
141
141
  end
142
142
 
143
143
  def click_list_link(text)
144
- self.click_selector("a.link[title*='#{text}']")
144
+ self.click_selector("a.link:visible[title*='#{text}']")
145
145
  end
146
146
 
147
147
  def click_selector(selector)
@@ -154,19 +154,19 @@ module RubyApp
154
154
  end
155
155
 
156
156
  def assert_exists_text(text)
157
- self.assert_exists_selector("*:contains('#{text}')")
157
+ self.assert_exists_selector("*:visible:contains('#{text}')")
158
158
  end
159
159
 
160
160
  def assert_not_exists_text(text)
161
- self.assert_not_exists_selector("*:contains('#{text}')")
161
+ self.assert_not_exists_selector("*:visible:contains('#{text}')")
162
162
  end
163
163
 
164
164
  def assert_exists_link(text)
165
- self.assert_exists_selector("a:contains('#{text}')")
165
+ self.assert_exists_selector("a:visible:contains('#{text}')")
166
166
  end
167
167
 
168
168
  def assert_not_exists_link(text)
169
- self.assert_not_exists_selector("a:contains('#{text}')")
169
+ self.assert_not_exists_selector("a:visible:contains('#{text}')")
170
170
  end
171
171
 
172
172
  def assert_exists_selector(selector)
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.6.26"
2
+ VERSION = "0.6.27"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 26
10
- version: 0.6.26
9
+ - 27
10
+ version: 0.6.27
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-06 00:00:00 Z
18
+ date: 2012-10-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement