commonwatir 1.7.0.rc1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,8 +1,8 @@
1
- == Version 1.7.0 - 2010/12/20
1
+ == Version 1.7.0 - 2011/01/06
2
2
 
3
3
  === IE improvements
4
4
 
5
- * Fixed Watir::IE#close_all. Closes http://jira.openqa.org/browse/WTR-463 (Jarmo Pertman)
5
+ * Fixed Watir::IE#close_all to close all IE windows, even the ones with tabs. Closes http://jira.openqa.org/browse/WTR-463 (Jarmo Pertman)
6
6
  * IE#wait waits now again until browser has a state of READYSTATE_COMPLETE due to strange timing issues. Closes http://jira.openqa.org/browse/WTR-466 (Jarmo Pertman)
7
7
  * Added CSS3 selectors with usage like browser.text_field(:css => "input[name='text1']") (Jonas Tingeborn)
8
8
  * Updated bundled version of AutoIt to 3.3.6.1. Closes http://jira.openqa.org/browse/WTR-440 (Jarmo Pertman)
@@ -12,6 +12,12 @@
12
12
  * Fixed Element#exists? for cases where nested elements were used for locating (Alok Menghrajani)
13
13
  * Ignore uppercase tags in XHTML when searching for elements (Alok Menghrajani)
14
14
 
15
+ === General improvements
16
+
17
+ * Return Element#id correctly when using Element#when_present and friends methods. Closes http://jira.openqa.org/browse/WTR-469 (Jarmo Pertman)
18
+
19
+ Whole Changelog is available at http://github.com/bret/watir/compare/v1.6.7...v1.7.0
20
+
15
21
  == Version 1.6.7 - 2010/10/26
16
22
 
17
23
  === General improvements
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0.rc1
1
+ 1.7.0
@@ -23,6 +23,13 @@ module Watir
23
23
  Watir::Wait.until(@timeout) { @element.present? }
24
24
  @element.send(m, *args, &block)
25
25
  end
26
+
27
+ # Returns element id
28
+ def id
29
+ Watir::Wait.until(@timeout) { @element.present? }
30
+ @element.id
31
+ end
32
+
26
33
  end
27
34
 
28
35
  #
@@ -63,4 +70,4 @@ module Watir
63
70
  end
64
71
 
65
72
  end # module ElementExtensions
66
- end
73
+ end
@@ -75,6 +75,13 @@ class Wait < Test::Unit::TestCase
75
75
  assert_raises(Watir::Wait::TimeoutError) {browser.div(:id => "non-existing").when_present(0.1).text}
76
76
  end
77
77
 
78
+ def test_when_present_element_id
79
+ browser.link(:id => "link1").click
80
+ div = browser.div(:id => "div1")
81
+ assert_equal "div1", div.when_present(2).id
82
+ assert div.visible?
83
+ end
84
+
78
85
  def test_wait_until_present
79
86
  browser.link(:id => "link1").click
80
87
 
@@ -116,4 +123,4 @@ class Wait < Test::Unit::TestCase
116
123
  Watir::Wait.while(2) {div.visible?}
117
124
  assert !div.visible?
118
125
  end
119
- end
126
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonwatir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940582
5
- prerelease: true
4
+ hash: 11
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
9
  - 0
10
- - rc1
11
- version: 1.7.0.rc1
10
+ version: 1.7.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - Bret Pettichord
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-12-21 00:00:00 +02:00
18
+ date: 2011-01-06 00:00:00 +02:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -123,14 +122,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
122
  required_rubygems_version: !ruby/object:Gem::Requirement
124
123
  none: false
125
124
  requirements:
126
- - - ">"
125
+ - - ">="
127
126
  - !ruby/object:Gem::Version
128
- hash: 25
127
+ hash: 3
129
128
  segments:
130
- - 1
131
- - 3
132
- - 1
133
- version: 1.3.1
129
+ - 0
130
+ version: "0"
134
131
  requirements: []
135
132
 
136
133
  rubyforge_project: wtr