watir_robot 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,7 +1,9 @@
1
+ v0.1.4 Add keywords to TextField module.
2
+
1
3
  v0.1.3. Include the new Area module which was coded in a previous version, but omitted from the KeywordLib class.
2
4
 
3
5
  v0.1.2. Fix improper use of custom exceptions and exception strings for negative tests.
4
6
 
5
7
  v0.1.1. Add support for using Regular Expressions in keyword arguments. Convert string versions of regexes passed back from Robot Framework into actual Ruby regexes which Watir-WebDriver will accept.
6
8
 
7
- v0.1.0. Initial gem package for Watir Robot. Includes healthy base of Robot Framework keywords for driving the browser, taking a screenshot and using the mouse natively.
9
+ v0.1.0. Initial gem package for Watir Robot. Includes healthy base of Robot Framework keywords for driving the browser, taking a screenshot and using the mouse natively.
data/Manifest CHANGED
@@ -23,3 +23,4 @@ lib/watir_robot/keywords/select.rb
23
23
  lib/watir_robot/keywords/table.rb
24
24
  lib/watir_robot/keywords/text_field.rb
25
25
  lib/watir_robot/parser.rb
26
+ watir_robot.gemspec
@@ -38,7 +38,32 @@ module WatirRobot
38
38
  # This will differ from input_text when logging is implemented
39
39
  @browser.text_field(parse_location(loc)).set password
40
40
  end
41
-
41
+
42
+ #
43
+ # Clear the given textfield
44
+ #
45
+ # @param [String] loc attribute/value pairs that match an HTML element
46
+ #
47
+ def clear_textfield(loc)
48
+ @browser.text_field(parse_location(loc)).clear
49
+ end
50
+
51
+ #
52
+ # Get value of given text field
53
+ #
54
+ # @param [String] loc attribute/value pairs that match an HTML element
55
+ def get_textfield_value(loc)
56
+ @browser.text_field(parse_location(loc)).value
57
+ end
58
+
59
+ #
60
+ # Append text to a given text field's current value
61
+ #
62
+ # @param [String] loc attribute/value pairs that match an HTML element
63
+ #
64
+ def append_to_textfield(loc, text)
65
+ @browser.text_field(parse_location(loc)).append(text)
66
+ end
42
67
 
43
68
  ### Conditions ###
44
69
 
@@ -66,4 +91,4 @@ module WatirRobot
66
91
 
67
92
  end
68
93
 
69
- end
94
+ end
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.3"
5
+ s.version = "0.1.4"
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-01-27}
9
+ s.date = %q{2011-02-23}
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
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-01-27 00:00:00 -05:00
18
+ date: 2011-02-23 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency