firewatir 1.6.5 → 1.6.6.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/CHANGES +461 -0
  2. data/LICENSE +31 -31
  3. data/README.rdoc +112 -0
  4. data/VERSION +1 -0
  5. data/lib/firewatir.rb +41 -40
  6. data/lib/firewatir/container.rb +491 -491
  7. data/lib/firewatir/document.rb +239 -239
  8. data/lib/firewatir/element.rb +1364 -1364
  9. data/lib/firewatir/element_collections.rb +314 -314
  10. data/lib/firewatir/elements/button.rb +15 -15
  11. data/lib/firewatir/elements/file_field.rb +29 -29
  12. data/lib/firewatir/elements/form.rb +40 -40
  13. data/lib/firewatir/elements/frame.rb +55 -55
  14. data/lib/firewatir/elements/hidden.rb +56 -56
  15. data/lib/firewatir/elements/image.rb +139 -139
  16. data/lib/firewatir/elements/input_element.rb +44 -44
  17. data/lib/firewatir/elements/link.rb +76 -76
  18. data/lib/firewatir/elements/non_control_element.rb +53 -53
  19. data/lib/firewatir/elements/non_control_elements.rb +108 -108
  20. data/lib/firewatir/elements/not_used.rb +278 -278
  21. data/lib/firewatir/elements/option.rb +130 -130
  22. data/lib/firewatir/elements/radio_check_common.rb +163 -163
  23. data/lib/firewatir/elements/select_list.rb +188 -188
  24. data/lib/firewatir/elements/table.rb +218 -218
  25. data/lib/firewatir/elements/table_cell.rb +54 -54
  26. data/lib/firewatir/elements/table_row.rb +100 -100
  27. data/lib/firewatir/elements/text_field.rb +218 -218
  28. data/lib/firewatir/exceptions.rb +10 -10
  29. data/lib/firewatir/firefox.rb +984 -1040
  30. data/lib/firewatir/jssh_socket.rb +100 -100
  31. data/lib/firewatir/winClicker.rb +122 -122
  32. data/lib/firewatir/x11.rb +192 -192
  33. data/rakefile.rb +15 -0
  34. data/unittests/attach_to_new_window_test.rb +49 -49
  35. data/unittests/bug_fixes_test.rb +195 -195
  36. data/unittests/buttons_xpath_test.rb +88 -88
  37. data/unittests/checkbox_test.rb +158 -158
  38. data/unittests/checkbox_xpath_test.rb +107 -107
  39. data/unittests/div_test.rb +275 -275
  40. data/unittests/ff_test.rb +47 -0
  41. data/unittests/filefield_test.rb +49 -49
  42. data/unittests/filefield_xpath_test.rb +35 -35
  43. data/unittests/form_test.rb +296 -296
  44. data/unittests/frame_test.rb +159 -159
  45. data/unittests/hidden_test.rb +85 -85
  46. data/unittests/hidden_xpath_test.rb +72 -72
  47. data/unittests/html/JavascriptClick.html +42 -42
  48. data/unittests/html/blankpage.html +11 -11
  49. data/unittests/html/buttons1.html +61 -61
  50. data/unittests/html/checkboxes1.html +70 -70
  51. data/unittests/html/complex_table.html +36 -36
  52. data/unittests/html/cssTest.html +42 -42
  53. data/unittests/html/div.html +72 -72
  54. data/unittests/html/div_xml.html +20 -20
  55. data/unittests/html/fileupload.html +45 -45
  56. data/unittests/html/formTest1.html +38 -38
  57. data/unittests/html/forms2.html +45 -45
  58. data/unittests/html/forms3.html +132 -132
  59. data/unittests/html/forms4.html +27 -27
  60. data/unittests/html/frame_buttons.html +3 -3
  61. data/unittests/html/frame_links.html +3 -3
  62. data/unittests/html/frame_multi.html +4 -4
  63. data/unittests/html/iframeTest.html +14 -14
  64. data/unittests/html/iframeTest1.html +13 -13
  65. data/unittests/html/iframeTest2.html +5 -5
  66. data/unittests/html/images1.html +66 -66
  67. data/unittests/html/javascriptevents.html +35 -35
  68. data/unittests/html/link_pass.html +10 -10
  69. data/unittests/html/links1.html +42 -42
  70. data/unittests/html/links2.html +10 -10
  71. data/unittests/html/modal_dialog.html +8 -8
  72. data/unittests/html/modal_dialog_launcher.html +11 -11
  73. data/unittests/html/nestedFrames.html +6 -6
  74. data/unittests/html/new_browser.html +17 -17
  75. data/unittests/html/new_browser_popup.html +7 -7
  76. data/unittests/html/pass.html +9 -9
  77. data/unittests/html/popups1.html +60 -60
  78. data/unittests/html/pre.html +27 -27
  79. data/unittests/html/radioButtons1.html +70 -70
  80. data/unittests/html/redirect.html +10 -10
  81. data/unittests/html/redirect1.html +8 -8
  82. data/unittests/html/redirect2.html +8 -8
  83. data/unittests/html/redirect3.html +8 -8
  84. data/unittests/html/select_tealeaf.html +54 -54
  85. data/unittests/html/selectboxes1.html +55 -55
  86. data/unittests/html/simple_table.html +26 -26
  87. data/unittests/html/simple_table_buttons.html +104 -104
  88. data/unittests/html/simple_table_columns.html +74 -74
  89. data/unittests/html/table1.html +165 -165
  90. data/unittests/html/tableCell_using_xpath.html +19 -19
  91. data/unittests/html/textarea.html +30 -30
  92. data/unittests/html/textfields1.html +62 -62
  93. data/unittests/html/textsearch.html +44 -44
  94. data/unittests/images_test.rb +198 -198
  95. data/unittests/images_xpath_test.rb +118 -118
  96. data/unittests/javascript_test.rb +75 -75
  97. data/unittests/links_test.rb +231 -231
  98. data/unittests/links_xpath_test.rb +79 -79
  99. data/unittests/mozilla_all_tests.rb +7 -7
  100. data/unittests/pre_test.rb +75 -75
  101. data/unittests/radios_test.rb +166 -166
  102. data/unittests/radios_xpath_test.rb +101 -101
  103. data/unittests/redirect_test.rb +41 -41
  104. data/unittests/selectbox_test.rb +142 -142
  105. data/unittests/selectbox_xpath_test.rb +129 -129
  106. data/unittests/setup.rb +29 -29
  107. data/unittests/table_test.rb +385 -385
  108. data/unittests/table_xpath_test.rb +185 -185
  109. data/unittests/textfields_test.rb +234 -234
  110. data/unittests/textfields_xpath_test.rb +113 -113
  111. metadata +51 -19
  112. data/lib/firewatir/version.rb +0 -5
@@ -1,45 +1,45 @@
1
- <html>
2
- <head>
3
- <title>
4
- Test page for Forms
5
- </title>
6
- </head>
7
- <body>
8
- CVS Revision: "$Revision: 1.0 $"
9
- <br>
10
- <br>
11
- <table>
12
- <tr>
13
- <td>
14
- <form method = get action = pass.html>
15
- <input type = button name = b1 id = b2 value = "Click Me" >
16
- </form>
17
-
18
- <td> Form with no name
19
-
20
-
21
- <tr>
22
- <td>
23
- <form name = test2 id = f2 method = get action = pass2.html>
24
- <br><input type = submit value=Submit>
25
- </form>
26
- <td> This form is identical to the one above
27
-
28
-
29
-
30
- <tr>
31
- <td>
32
- <form name = test3 method = get action = pass2.html>
33
- <br><input type = submit value=Submit>
34
- </form>
35
- <td> This form has a name
36
- <tr>
37
- <td>
38
- <form name = test2 method = get action = pass2.html>
39
- <br><input type = submit value=Submit>
40
- </form>
41
- <td> This form has a name
42
-
43
-
44
- </body>
45
- </html>
1
+ <html>
2
+ <head>
3
+ <title>
4
+ Test page for Forms
5
+ </title>
6
+ </head>
7
+ <body>
8
+ CVS Revision: "$Revision: 1.0 $"
9
+ <br>
10
+ <br>
11
+ <table>
12
+ <tr>
13
+ <td>
14
+ <form method = get action = pass.html>
15
+ <input type = button name = b1 id = b2 value = "Click Me" >
16
+ </form>
17
+
18
+ <td> Form with no name
19
+
20
+
21
+ <tr>
22
+ <td>
23
+ <form name = test2 id = f2 method = get action = pass2.html>
24
+ <br><input type = submit value=Submit>
25
+ </form>
26
+ <td> This form is identical to the one above
27
+
28
+
29
+
30
+ <tr>
31
+ <td>
32
+ <form name = test3 method = get action = pass2.html>
33
+ <br><input type = submit value=Submit>
34
+ </form>
35
+ <td> This form has a name
36
+ <tr>
37
+ <td>
38
+ <form name = test2 method = get action = pass2.html>
39
+ <br><input type = submit value=Submit>
40
+ </form>
41
+ <td> This form has a name
42
+
43
+
44
+ </body>
45
+ </html>
@@ -1,132 +1,132 @@
1
- <html>
2
- <head>
3
- <title>
4
- Test page for Forms
5
- </title>
6
-
7
- <script>
8
- function showHidden(){
9
-
10
- document.all.vis1.value = document.all.hid1.value;
11
- document.all.vis2.value = document.getElementById("hidden_1").value;
12
-
13
- }
14
-
15
-
16
- </script>
17
-
18
- </head>
19
- <body>
20
- CVS Revision: "$Revision: 1.0 $"
21
- <br>
22
- <br>
23
- <table>
24
- <tr>
25
- <td>
26
- <form method = get action = pass.html>
27
- <input type = button name = b1 id = b2 value = "Click Me" >
28
- </form>
29
-
30
- <td>
31
-
32
-
33
- <tr>
34
- <td>
35
- <form name = test2 method = get action = pass2.html>
36
- <ul>
37
- <li>ListItem1 </li>
38
- <li><span>ListItem2</span></li>
39
- </ul>
40
-
41
-
42
- <br><input type = checkbox name = check1 value = 10 >
43
- <br><input type = checkbox name = check1 value = 20 >
44
- <br><input type = checkbox name = check1 value = 30 >
45
-
46
- <br><input selected type = radio name = r1 value = 'a' >
47
- <br><input type = radio name = r1 value = 'b' >
48
- <br><input type = radio name = r1 value = 'c' >
49
- <br><input type = radio name = r1 value = 'd' >
50
-
51
- <br><input type = text id = t1>
52
- <br><input type = text id = t2>
53
-
54
- <br><select name = s1>
55
- <option>1</option>
56
- <option>2</option>
57
- </select>
58
-
59
- <br><select multiple visible=3 name = s2>
60
- <option>1</option>
61
- <option>2</option>
62
- <option>3</option>
63
- <option>4</option>
64
- <option>5</option>
65
- <option>6</option>
66
-
67
- </select>
68
-
69
-
70
-
71
- <br><input type = submit value=Submit><input type = reset id = reset_button>
72
-
73
-
74
-
75
-
76
- </form>
77
- <td>
78
- <tr bgcolor=blue>
79
- <td>
80
- <input type = text name = g1 value = 'textfield' >
81
- <br>
82
- <input type = button name = g1 value ='button'>
83
- <br>
84
- <input type = checkbox name = g1 value='1'>
85
- <br>
86
- <input type = radio name = g1 value = '2'>
87
- <br>
88
-
89
- <td> These objects all have the same name
90
-
91
-
92
- <tr bgcolor=lightblue>
93
- <td >
94
- <input type = text id = g1 value = 'textfield_id' >
95
- <br>
96
- <input type = button id = g1 value ='button_id'>
97
- <br>
98
- <input type = checkbox id= g1 value='1_id'>
99
- <br>
100
- <input type = radio id = g1 value = '2_id'>
101
- <br>
102
-
103
- <td> These objects all have the same id
104
-
105
- <tr>
106
- <td>
107
- <form name = buttonsubmit method = get action = pass.html>
108
- <p>This form is has a submit button that is an image</p>
109
- <input type = text name = tt1>
110
- <input type = image src = images/button.jpg alt = "submit" name=imm>
111
- </form>
112
-
113
- <form name = has_a_hidden>
114
- This is in a form. The form has hidden objects.
115
- <br>
116
- The first has a name - hid1<input type = hidden name = hid1>
117
- <br>
118
- The second has an id- hidden_1<input type = hidden id= hidden_1>
119
-
120
- Click This Button to see the values in these boxes
121
- <input type = button value='Show Hidden' onClick='javascript:showHidden();'>
122
- <br>
123
- <input type = text name = vis1>
124
- <br>
125
- <input type = text name = vis2>
126
-
127
- </form>
128
-
129
-
130
-
131
- </body>
132
- </html>
1
+ <html>
2
+ <head>
3
+ <title>
4
+ Test page for Forms
5
+ </title>
6
+
7
+ <script>
8
+ function showHidden(){
9
+
10
+ document.all.vis1.value = document.all.hid1.value;
11
+ document.all.vis2.value = document.getElementById("hidden_1").value;
12
+
13
+ }
14
+
15
+
16
+ </script>
17
+
18
+ </head>
19
+ <body>
20
+ CVS Revision: "$Revision: 1.0 $"
21
+ <br>
22
+ <br>
23
+ <table>
24
+ <tr>
25
+ <td>
26
+ <form method = get action = pass.html>
27
+ <input type = button name = b1 id = b2 value = "Click Me" >
28
+ </form>
29
+
30
+ <td>
31
+
32
+
33
+ <tr>
34
+ <td>
35
+ <form name = test2 method = get action = pass2.html>
36
+ <ul>
37
+ <li>ListItem1 </li>
38
+ <li><span>ListItem2</span></li>
39
+ </ul>
40
+
41
+
42
+ <br><input type = checkbox name = check1 value = 10 >
43
+ <br><input type = checkbox name = check1 value = 20 >
44
+ <br><input type = checkbox name = check1 value = 30 >
45
+
46
+ <br><input selected type = radio name = r1 value = 'a' >
47
+ <br><input type = radio name = r1 value = 'b' >
48
+ <br><input type = radio name = r1 value = 'c' >
49
+ <br><input type = radio name = r1 value = 'd' >
50
+
51
+ <br><input type = text id = t1>
52
+ <br><input type = text id = t2>
53
+
54
+ <br><select name = s1>
55
+ <option>1</option>
56
+ <option>2</option>
57
+ </select>
58
+
59
+ <br><select multiple visible=3 name = s2>
60
+ <option>1</option>
61
+ <option>2</option>
62
+ <option>3</option>
63
+ <option>4</option>
64
+ <option>5</option>
65
+ <option>6</option>
66
+
67
+ </select>
68
+
69
+
70
+
71
+ <br><input type = submit value=Submit><input type = reset id = reset_button>
72
+
73
+
74
+
75
+
76
+ </form>
77
+ <td>
78
+ <tr bgcolor=blue>
79
+ <td>
80
+ <input type = text name = g1 value = 'textfield' >
81
+ <br>
82
+ <input type = button name = g1 value ='button'>
83
+ <br>
84
+ <input type = checkbox name = g1 value='1'>
85
+ <br>
86
+ <input type = radio name = g1 value = '2'>
87
+ <br>
88
+
89
+ <td> These objects all have the same name
90
+
91
+
92
+ <tr bgcolor=lightblue>
93
+ <td >
94
+ <input type = text id = g1 value = 'textfield_id' >
95
+ <br>
96
+ <input type = button id = g1 value ='button_id'>
97
+ <br>
98
+ <input type = checkbox id= g1 value='1_id'>
99
+ <br>
100
+ <input type = radio id = g1 value = '2_id'>
101
+ <br>
102
+
103
+ <td> These objects all have the same id
104
+
105
+ <tr>
106
+ <td>
107
+ <form name = buttonsubmit method = get action = pass.html>
108
+ <p>This form is has a submit button that is an image</p>
109
+ <input type = text name = tt1>
110
+ <input type = image src = images/button.jpg alt = "submit" name=imm>
111
+ </form>
112
+
113
+ <form name = has_a_hidden>
114
+ This is in a form. The form has hidden objects.
115
+ <br>
116
+ The first has a name - hid1<input type = hidden name = hid1>
117
+ <br>
118
+ The second has an id- hidden_1<input type = hidden id= hidden_1>
119
+
120
+ Click This Button to see the values in these boxes
121
+ <input type = button value='Show Hidden' onClick='javascript:showHidden();'>
122
+ <br>
123
+ <input type = text name = vis1>
124
+ <br>
125
+ <input type = text name = vis2>
126
+
127
+ </form>
128
+
129
+
130
+
131
+ </body>
132
+ </html>
@@ -1,27 +1,27 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
3
- <head>
4
- <title>Test page for forms</title>
5
- </head>
6
- <body>
7
- CVS Revision: $Revision 1.0$
8
- <br>
9
- <br>
10
- <table>
11
- <tbody>
12
- <tr>
13
- <td>
14
- <form name="apple_form" method="get" action="pass.html"> <input
15
- name="name" value="apple" type="text"> </form>
16
- </td>
17
- </tr>
18
- <tr>
19
- <td>
20
- <form name="banana_form" method="get" action="pass2.html"> <input
21
- name="name" value="banana" type="text"> </form>
22
- </td>
23
- </tr>
24
- </tbody>
25
- </table>
26
- </body>
27
- </html>
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <title>Test page for forms</title>
5
+ </head>
6
+ <body>
7
+ CVS Revision: $Revision 1.0$
8
+ <br>
9
+ <br>
10
+ <table>
11
+ <tbody>
12
+ <tr>
13
+ <td>
14
+ <form name="apple_form" method="get" action="pass.html"> <input
15
+ name="name" value="apple" type="text"> </form>
16
+ </td>
17
+ </tr>
18
+ <tr>
19
+ <td>
20
+ <form name="banana_form" method="get" action="pass2.html"> <input
21
+ name="name" value="banana" type="text"> </form>
22
+ </td>
23
+ </tr>
24
+ </tbody>
25
+ </table>
26
+ </body>
27
+ </html>
@@ -1,4 +1,4 @@
1
- <frameset cols=50,50 >
2
- <frame src = buttons1.html name = buttonFrame>
3
- <frame src = blankpage.html name = buttonFrame2>
1
+ <frameset cols=50,50 >
2
+ <frame src = buttons1.html name = buttonFrame>
3
+ <frame src = blankpage.html name = buttonFrame2>
4
4
  </frameset>
@@ -1,4 +1,4 @@
1
- <frameset cols=50,50 >
2
- <frame src = links1.html name = buttonFrame>
3
- <frame src = blankpage.html name = buttonFrame2>
1
+ <frameset cols=50,50 >
2
+ <frame src = links1.html name = buttonFrame>
3
+ <frame src = blankpage.html name = buttonFrame2>
4
4
  </frameset>
@@ -1,5 +1,5 @@
1
- <frameset cols=50,25,25 >
2
- <frame src = buttons1.html name = buttonFrame id = first_frame>
3
- <frame src = blankpage.html name = buttonFrame2 id = second_frame>
4
- <frame src = pass.html>
1
+ <frameset cols=50,25,25 >
2
+ <frame src = buttons1.html name = buttonFrame id = first_frame>
3
+ <frame src = blankpage.html name = buttonFrame2 id = second_frame>
4
+ <frame src = pass.html>
5
5
  </frameset>
@@ -1,15 +1,15 @@
1
- <html>
2
- <body>
3
-
4
-
5
- <table>
6
- <tr>
7
- <td>
8
- <iframe src = iframeTest1.html name = senderFrame width = 300 height = 300></iframe>
9
- </td>
10
- <td>
11
- <iframe src = iframeTest2.html name = receiverFrame width = 300 height = 300></iframe>
12
- </td>
13
- </tr>
14
- </table>
1
+ <html>
2
+ <body>
3
+
4
+
5
+ <table>
6
+ <tr>
7
+ <td>
8
+ <iframe src = iframeTest1.html name = senderFrame width = 300 height = 300></iframe>
9
+ </td>
10
+ <td>
11
+ <iframe src = iframeTest2.html name = receiverFrame width = 300 height = 300></iframe>
12
+ </td>
13
+ </tr>
14
+ </table>
15
15
  </html>