watir 2.0.0.rc3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,6 +1,6 @@
1
- == Version 2.0.0 - 2011/07/XX
1
+ == Version 2.0.0 - 2011/08/10
2
2
 
3
- * RIP FireWatir - there won't be any new releases
3
+ * RIP FireWatir - there won't be any new releases due to the lack of JSSH extension for Firefox 4+ versions.
4
4
  * all elements are using 0-based indexing instead of old 1-based indexing:
5
5
  - disable it temporarily: require "watir"; Watir.options[:zero_based_indexing] = false
6
6
  * #radio and #checkbox methods doesn't allow 3 parameters anymore for locating with "value"
@@ -22,6 +22,12 @@
22
22
  - tds => cells
23
23
  - a => link
24
24
  - as => links
25
+ - img => image
26
+ - imgs => images
27
+
28
+ == Version 1.9.3 - 2011/07/24
29
+
30
+ * Only FireWatir version released to make a dependency for commonwatir to be less strict to make it possible to use FireWatir together with Watir 2+ versions if needed.
25
31
 
26
32
  == Version 1.9.2 - 2011/07/11
27
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.rc3
1
+ 2.0.0
@@ -121,6 +121,11 @@ module Watir
121
121
  end
122
122
  end
123
123
  private :fill_save_image_dialog
124
+
125
+ Watir::Container.module_eval do
126
+ alias_method :img, :image
127
+ alias_method :imgs, :images
128
+ end
124
129
  end
125
130
 
126
131
  end
@@ -248,7 +248,7 @@ class TC_Hidden_Fields_XPath < Test::Unit::TestCase
248
248
  count+=1
249
249
  end
250
250
 
251
- assert_equal("hid1" , browser.hiddens[1].name )
252
- assert_equal("hidden_1" , browser.hiddens[2].id )
251
+ assert_equal("hid1" , browser.hiddens[0].name )
252
+ assert_equal("hidden_1" , browser.hiddens[1].id )
253
253
  end
254
254
  end
@@ -35,10 +35,10 @@ class TC_Tables_XPath < Test::Unit::TestCase
35
35
 
36
36
  def test_links_and_images_in_table
37
37
  table = browser.table(:xpath , "//table[@id='pic_table']/")
38
- image = table[1][2].image(:index,1)
38
+ image = table[0][1].image(:index,0)
39
39
  assert_equal("106", image.width)
40
40
 
41
- link = table[1][4].link(:index,1)
41
+ link = table[0][3].link(:index,0)
42
42
  assert_equal("Google", link.innerText)
43
43
  end
44
44
 
@@ -48,7 +48,7 @@ class TC_Tables_XPath < Test::Unit::TestCase
48
48
  button = browser.button(:xpath , "//input[@id='b1']/")
49
49
  table = Watir::Table.create_from_element(browser,button)
50
50
 
51
- table[2][1].button(:index,1).click
51
+ table[1][0].button(:index,0).click
52
52
  assert(browser.text_field(:name,"confirmtext").verify_contains(/CLICK2/i))
53
53
  end
54
54
 
@@ -63,7 +63,7 @@ class TC_Tables_XPath < Test::Unit::TestCase
63
63
  assert( browser.row(:xpath , "//tr[@id='row1']/").exists? )
64
64
  assert_false( browser.row(:xpath , "//tr[@id='no_exist']/").exists? )
65
65
 
66
- assert_equal('Row 2 Col1' , browser.row(:xpath , "//tr[@id='row1']/")[1].to_s.strip )
66
+ assert_equal('Row 2 Col1' , browser.row(:xpath , "//tr[@id='row1']/")[0].to_s.strip )
67
67
  end
68
68
 
69
69
 
@@ -85,22 +85,22 @@ class TC_Tables_XPath < Test::Unit::TestCase
85
85
  compare_text = "This text is in the THIRD TBODY."
86
86
  end
87
87
 
88
- assert_equal( compare_text , n[1][1].to_s.strip ) # this is the 1st cell of the first row of this particular body
88
+ assert_equal( compare_text , n[0][0].to_s.strip ) # this is the 1st cell of the first row of this particular body
89
89
 
90
90
  count +=1
91
91
  end
92
92
  assert_equal( count-1, browser.table(:xpath , "//table[@id='body_test']/").bodies.length )
93
93
 
94
- assert_equal( "This text is in the THIRD TBODY." ,browser.table(:xpath , "//table[@id='body_test']/").body(:index,3)[1][1].to_s.strip )
94
+ assert_equal( "This text is in the THIRD TBODY." ,browser.table(:xpath , "//table[@id='body_test']/").body(:index,2)[0][0].to_s.strip )
95
95
 
96
96
  # iterate through all the rows in a table body
97
97
  count = 1
98
- browser.table(:xpath , "//table[@id='body_test']/").body(:index,2).each do | row |
98
+ browser.table(:xpath , "//table[@id='body_test']/").body(:index,1).each do | row |
99
99
  # row.flash # this line commented out, to speed up the tests
100
100
  if count == 1
101
- assert_equal('This text is in the SECOND TBODY.' , row[1].text.strip )
101
+ assert_equal('This text is in the SECOND TBODY.' , row[0].text.strip )
102
102
  elsif count == 1
103
- assert_equal('This text is also in the SECOND TBODY.' , row[1].text.strip )
103
+ assert_equal('This text is also in the SECOND TBODY.' , row[0].text.strip )
104
104
  end
105
105
  count+=1
106
106
  end
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424083
5
- prerelease: 6
4
+ hash: 15
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
- - rc
11
- - 3
12
- version: 2.0.0.rc3
10
+ version: 2.0.0
13
11
  platform: ruby
14
12
  authors:
15
13
  - Bret Pettichord
@@ -17,7 +15,7 @@ autorequire:
17
15
  bindir: bin
18
16
  cert_chain: []
19
17
 
20
- date: 2011-07-25 00:00:00 Z
18
+ date: 2011-08-10 00:00:00 Z
21
19
  dependencies:
22
20
  - !ruby/object:Gem::Dependency
23
21
  name: win32-process
@@ -59,14 +57,12 @@ dependencies:
59
57
  requirements:
60
58
  - - "="
61
59
  - !ruby/object:Gem::Version
62
- hash: 15424083
60
+ hash: 15
63
61
  segments:
64
62
  - 2
65
63
  - 0
66
64
  - 0
67
- - rc
68
- - 3
69
- version: 2.0.0.rc3
65
+ version: 2.0.0
70
66
  type: :runtime
71
67
  version_requirements: *id003
72
68
  - !ruby/object:Gem::Dependency
@@ -345,14 +341,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
341
  required_rubygems_version: !ruby/object:Gem::Requirement
346
342
  none: false
347
343
  requirements:
348
- - - ">"
344
+ - - ">="
349
345
  - !ruby/object:Gem::Version
350
- hash: 25
346
+ hash: 3
351
347
  segments:
352
- - 1
353
- - 3
354
- - 1
355
- version: 1.3.1
348
+ - 0
349
+ version: "0"
356
350
  requirements:
357
351
  - Microsoft Windows running Internet Explorer 5.5 or later.
358
352
  rubyforge_project: Watir