watir_robot 0.1.6 → 0.1.7

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.1.7 Add keywords for verification of presence/absence of forms on a page.
2
+
1
3
  v0.1.6 Disable native events by default to fix bug with click().
2
4
 
3
5
  v0.1.5 Add keywrods to Element for sending keys (typing) into any element.
@@ -165,7 +165,7 @@ module WatirRobot
165
165
  end
166
166
 
167
167
  #
168
- # Verify element exists on page
168
+ # Verify element does not exist on page
169
169
  #
170
170
  # @param [String] loc attribute/value pairs that match an HTML element
171
171
  #
@@ -173,6 +173,26 @@ module WatirRobot
173
173
  raise(Exception::ElementExists, "The element described by #{loc} is erroneously contained within the page:\n#{@browser.html}") if
174
174
  @browser.element(parse_location(loc)).exists?
175
175
  end
176
+
177
+ #
178
+ # Verify form exists on page
179
+ #
180
+ # @param [String] loc attribute/value pairs that match an HTML element
181
+ #
182
+ def page_should_contain_form(loc)
183
+ raise(Exception::ElementDoesNotExist, "The form described by #{loc} is not contained within the page:\n#{@browser.html}") unless
184
+ @browser.form(parse_location(loc)).exists?
185
+ end
186
+
187
+ #
188
+ # Verify form does not exist on page
189
+ #
190
+ # @param [String] loc attribute/value pairs that match an HTML element
191
+ #
192
+ def page_should_not_contain_form(loc)
193
+ raise(Exception::ElementExists, "The form described by #{loc} is erroneously contained within the page:\n#{@browser.html}") if
194
+ @browser.form(parse_location(loc)).exists?
195
+ end
176
196
 
177
197
  #
178
198
  # Verify image exists on page
data/watir_robot.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{watir_robot}
5
- s.version = "0.1.6"
5
+ s.version = "0.1.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Daniel Gregoire"]
9
- s.date = %q{2011-02-24}
9
+ s.date = %q{2011-03-01}
10
10
  s.description = %q{Watir Robot - Remote keyword library for Robot Framework}
11
11
  s.email = %q{}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.rdoc", "lib/watir_robot.rb", "lib/watir_robot/exception.rb", "lib/watir_robot/keywords/area.rb", "lib/watir_robot/keywords/browser.rb", "lib/watir_robot/keywords/button.rb", "lib/watir_robot/keywords/checkbox.rb", "lib/watir_robot/keywords/element.rb", "lib/watir_robot/keywords/file_field.rb", "lib/watir_robot/keywords/form.rb", "lib/watir_robot/keywords/image.rb", "lib/watir_robot/keywords/link.rb", "lib/watir_robot/keywords/list.rb", "lib/watir_robot/keywords/native.rb", "lib/watir_robot/keywords/page.rb", "lib/watir_robot/keywords/radio.rb", "lib/watir_robot/keywords/select.rb", "lib/watir_robot/keywords/table.rb", "lib/watir_robot/keywords/text_field.rb", "lib/watir_robot/parser.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_robot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Gregoire
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-24 00:00:00 -05:00
18
+ date: 2011-03-01 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency