watir 3.0.0.rc3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. data/Rakefile +5 -0
  2. data/lib/watir.rb +1 -0
  3. data/lib/watir/loader.rb +2 -0
  4. data/lib/watir/version.rb +3 -0
  5. data/watir.gemspec +18 -54
  6. metadata +32 -278
  7. data/CHANGES +0 -712
  8. data/LICENSE +0 -34
  9. data/README.rdoc +0 -101
  10. data/VERSION +0 -1
  11. data/bin/watir-console +0 -7
  12. data/lib/watir/IEDialog/Release/IEDialog.dll +0 -0
  13. data/lib/watir/close_all.rb +0 -31
  14. data/lib/watir/container.rb +0 -110
  15. data/lib/watir/contrib/enabled_popup.rb +0 -21
  16. data/lib/watir/contrib/ie-new-process.rb +0 -27
  17. data/lib/watir/contrib/page_checker.rb +0 -29
  18. data/lib/watir/cookies.rb +0 -80
  19. data/lib/watir/core.rb +0 -43
  20. data/lib/watir/dialogs/file_field.rb +0 -34
  21. data/lib/watir/dialogs/javascript.rb +0 -43
  22. data/lib/watir/drag_and_drop_helper.rb +0 -68
  23. data/lib/watir/element.rb +0 -441
  24. data/lib/watir/element_collection.rb +0 -109
  25. data/lib/watir/form.rb +0 -96
  26. data/lib/watir/frame.rb +0 -47
  27. data/lib/watir/ie-class.rb +0 -765
  28. data/lib/watir/ie-process.rb +0 -47
  29. data/lib/watir/ie.rb +0 -20
  30. data/lib/watir/image.rb +0 -111
  31. data/lib/watir/input_elements.rb +0 -480
  32. data/lib/watir/irb-history.rb +0 -31
  33. data/lib/watir/link.rb +0 -46
  34. data/lib/watir/locator.rb +0 -243
  35. data/lib/watir/logger.rb +0 -19
  36. data/lib/watir/modal_dialog.rb +0 -72
  37. data/lib/watir/module.rb +0 -12
  38. data/lib/watir/non_control_elements.rb +0 -114
  39. data/lib/watir/page-container.rb +0 -108
  40. data/lib/watir/process.rb +0 -20
  41. data/lib/watir/screen_capture.rb +0 -115
  42. data/lib/watir/supported_elements.rb +0 -172
  43. data/lib/watir/table.rb +0 -224
  44. data/lib/watir/win32.rb +0 -40
  45. data/lib/watir/win32ole.rb +0 -16
  46. data/lib/watir/win32ole/1.8.7/win32ole.so +0 -0
  47. data/lib/watir/win32ole/1.9.3/win32ole.so +0 -0
  48. data/lib/watir/window.rb +0 -68
  49. data/lib/watir/xpath_locator.rb +0 -52
  50. data/rakefile.rb +0 -54
  51. data/unittests/all_tests.rb +0 -10
  52. data/unittests/buttons_xpath_test.rb +0 -68
  53. data/unittests/checkbox_test.rb +0 -163
  54. data/unittests/checkbox_xpath_test.rb +0 -106
  55. data/unittests/click_no_wait_test.rb +0 -23
  56. data/unittests/close_all_test.rb +0 -17
  57. data/unittests/core_tests.rb +0 -17
  58. data/unittests/css_selector_test.rb +0 -44
  59. data/unittests/css_test.rb +0 -38
  60. data/unittests/dialog_test.rb +0 -64
  61. data/unittests/div2_xpath_test.rb +0 -21
  62. data/unittests/div_test.rb +0 -170
  63. data/unittests/div_xpath_test.rb +0 -95
  64. data/unittests/document_standards.rb +0 -63
  65. data/unittests/element_collection_indexes_test.rb +0 -57
  66. data/unittests/element_collections_test.rb +0 -100
  67. data/unittests/element_test.rb +0 -47
  68. data/unittests/errorchecker_test.rb +0 -31
  69. data/unittests/filefield_test.rb +0 -43
  70. data/unittests/filefield_xpath_test.rb +0 -35
  71. data/unittests/form_test.rb +0 -282
  72. data/unittests/form_xpath_test.rb +0 -254
  73. data/unittests/frame_test.rb +0 -165
  74. data/unittests/google_form_test.rb +0 -15
  75. data/unittests/html/JavascriptClick.html +0 -39
  76. data/unittests/html/blankpage.html +0 -11
  77. data/unittests/html/buttons1.html +0 -40
  78. data/unittests/html/checkboxes1.html +0 -89
  79. data/unittests/html/click_no_wait.html +0 -14
  80. data/unittests/html/complex_table.html +0 -35
  81. data/unittests/html/cssTest.html +0 -42
  82. data/unittests/html/depot_store.html +0 -59
  83. data/unittests/html/div.html +0 -92
  84. data/unittests/html/div_xml.html +0 -21
  85. data/unittests/html/fileupload.html +0 -44
  86. data/unittests/html/formTest1.html +0 -38
  87. data/unittests/html/forms2.html +0 -44
  88. data/unittests/html/forms3.html +0 -131
  89. data/unittests/html/forms4.html +0 -26
  90. data/unittests/html/frame_buttons.html +0 -4
  91. data/unittests/html/frame_links.html +0 -4
  92. data/unittests/html/frame_multi.html +0 -5
  93. data/unittests/html/google_india.html +0 -119
  94. data/unittests/html/ie7_document_standards.html +0 -9
  95. data/unittests/html/ie8_document_standards.html +0 -9
  96. data/unittests/html/ie9_document_standards.html +0 -9
  97. data/unittests/html/iframe.html +0 -3
  98. data/unittests/html/iframeTest.html +0 -17
  99. data/unittests/html/iframeTest1.html +0 -7
  100. data/unittests/html/iframeTest2.html +0 -5
  101. data/unittests/html/images/1.gif +0 -0
  102. data/unittests/html/images/2.GIF +0 -0
  103. data/unittests/html/images/3.GIF +0 -0
  104. data/unittests/html/images/button.jpg +0 -0
  105. data/unittests/html/images/circle.jpg +0 -0
  106. data/unittests/html/images/map.GIF +0 -0
  107. data/unittests/html/images/map2.gif +0 -0
  108. data/unittests/html/images/minus.GIF +0 -0
  109. data/unittests/html/images/originaltriangle.jpg +0 -0
  110. data/unittests/html/images/plus.gif +0 -0
  111. data/unittests/html/images/square.jpg +0 -0
  112. data/unittests/html/images/triangle.jpg +0 -0
  113. data/unittests/html/images1.html +0 -65
  114. data/unittests/html/javascriptevents.html +0 -33
  115. data/unittests/html/link_pass.html +0 -11
  116. data/unittests/html/links1.html +0 -37
  117. data/unittests/html/links2.html +0 -11
  118. data/unittests/html/links_multi.html +0 -12
  119. data/unittests/html/list_matters.html +0 -720
  120. data/unittests/html/lists.html +0 -18
  121. data/unittests/html/map_test.html +0 -30
  122. data/unittests/html/modal_dialog.html +0 -10
  123. data/unittests/html/modal_dialog_launcher.html +0 -12
  124. data/unittests/html/multiple_specifiers.html +0 -64
  125. data/unittests/html/nestedFrames.html +0 -6
  126. data/unittests/html/new_browser.html +0 -17
  127. data/unittests/html/pass.html +0 -13
  128. data/unittests/html/popups1.html +0 -59
  129. data/unittests/html/pre.html +0 -29
  130. data/unittests/html/quirks_document_standards.html +0 -8
  131. data/unittests/html/radioButtons1.html +0 -71
  132. data/unittests/html/select_tealeaf.html +0 -54
  133. data/unittests/html/selectboxes1.html +0 -52
  134. data/unittests/html/simple_table.html +0 -25
  135. data/unittests/html/simple_table_buttons.html +0 -104
  136. data/unittests/html/simple_table_columns.html +0 -75
  137. data/unittests/html/table1.html +0 -179
  138. data/unittests/html/tableCell_using_xpath.html +0 -19
  139. data/unittests/html/table_and_tablerow_to_a.html +0 -174
  140. data/unittests/html/textarea.html +0 -30
  141. data/unittests/html/textfields1.html +0 -100
  142. data/unittests/html/textsearch.html +0 -44
  143. data/unittests/html/wallofcheckboxes.html +0 -1003
  144. data/unittests/html/xpath_nbsp.html +0 -11
  145. data/unittests/html/zeroindex.html +0 -11
  146. data/unittests/ie_exists_test.rb +0 -16
  147. data/unittests/ie_mock.rb +0 -94
  148. data/unittests/ie_test.rb +0 -54
  149. data/unittests/images_test.rb +0 -156
  150. data/unittests/images_xpath_test.rb +0 -90
  151. data/unittests/index_specifier_test.rb +0 -31
  152. data/unittests/js_events_test.rb +0 -31
  153. data/unittests/links_multi_test.rb +0 -34
  154. data/unittests/links_test.rb +0 -131
  155. data/unittests/links_xpath_test.rb +0 -38
  156. data/unittests/lists_test.rb +0 -23
  157. data/unittests/map_test.rb +0 -98
  158. data/unittests/minmax_test.rb +0 -37
  159. data/unittests/navigate_test.rb +0 -38
  160. data/unittests/nbsp_xpath_test.rb +0 -16
  161. data/unittests/no_wait_test.rb +0 -28
  162. data/unittests/non_core_tests.rb +0 -12
  163. data/unittests/other/all_tests_concurrent.rb +0 -57
  164. data/unittests/other/navigate_exception_test.rb +0 -24
  165. data/unittests/other/rexml_unit_test.rb +0 -27
  166. data/unittests/other/screen_capture_test.rb +0 -53
  167. data/unittests/other/testcase_method_order_test.rb +0 -36
  168. data/unittests/other/testcase_verify_test.rb +0 -25
  169. data/unittests/other/wait_until_test.rb +0 -102
  170. data/unittests/pagecontainstext_test.rb +0 -69
  171. data/unittests/parent_child_test.rb +0 -27
  172. data/unittests/perf_test.rb +0 -20
  173. data/unittests/pre_test.rb +0 -49
  174. data/unittests/radios_test.rb +0 -181
  175. data/unittests/radios_xpath_test.rb +0 -100
  176. data/unittests/security_setting_test.rb +0 -24
  177. data/unittests/selectbox_test.rb +0 -144
  178. data/unittests/selectbox_xpath_test.rb +0 -102
  179. data/unittests/setup.rb +0 -70
  180. data/unittests/speed_settings_test.rb +0 -67
  181. data/unittests/table_cell_using_xpath_test.rb +0 -34
  182. data/unittests/table_test.rb +0 -296
  183. data/unittests/table_xpath_test.rb +0 -109
  184. data/unittests/test_tests.rb +0 -9
  185. data/unittests/textarea_test.rb +0 -92
  186. data/unittests/textarea_xpath_test.rb +0 -77
  187. data/unittests/textfield_for_ch_char_test.rb +0 -32
  188. data/unittests/textfields_test.rb +0 -184
  189. data/unittests/textfields_xpath_test.rb +0 -110
  190. data/unittests/version_test.rb +0 -15
  191. data/unittests/win32ole_so_test.rb +0 -35
  192. data/unittests/window_tests.rb +0 -10
  193. data/unittests/windows/attach_to_existing_window_test.rb +0 -52
  194. data/unittests/windows/attach_to_new_window_test.rb +0 -74
  195. data/unittests/windows/close_window_test.rb +0 -20
  196. data/unittests/windows/frame_links_test.rb +0 -23
  197. data/unittests/windows/ie-each_test.rb +0 -46
  198. data/unittests/windows/modal_dialog_test.rb +0 -95
  199. data/unittests/windows/new_process_test.rb +0 -24
  200. data/unittests/windows/new_test.rb +0 -58
  201. data/unittests/windows/open_close_test.rb +0 -19
  202. data/unittests/windows/send_keys_test.rb +0 -26
  203. data/unittests/xpath_tests.rb +0 -11
  204. data/watir-rdoc.rb +0 -7
@@ -1,59 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
- <!-- saved from url=(0027)http://localhost:3000/store -->
3
- <!--
4
- ! Excerpted from "Agile Web Development with Rails"
5
- ! We make no guarantees that this code is fit for any purpose.
6
- ! Visit http://www.pragmaticprogrammer.com for more book information.
7
- --><!doctype html><HEAD><TITLE>Pragprog Books Online Store</TITLE>
8
- <META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK media=all
9
- href="depot_store_files/scaffold.css" type=text/css rel=Stylesheet><LINK
10
- media=all href="depot_store_files/depot.css" type=text/css rel=Stylesheet>
11
- <META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
12
- <BODY>
13
- <DIV id=banner><IMG src="depot_store_files/logo.png"> Pragmatic Bookshelf </DIV>
14
- <DIV id=columns>
15
- <DIV id=side><A href="http://www..../">Home</A><BR><A
16
- href="http://www..../faq">Questions</A><BR><A
17
- href="http://www..../news">News</A><BR><A
18
- href="http://www..../contact">Contact</A><BR></DIV>
19
- <DIV id=main><!--
20
- ! Excerpted from "Agile Web Development with Rails"
21
- ! We make no guarantees that this code is fit for any purpose.
22
- ! Visit http://www.pragmaticprogrammer.com for more book information.
23
- -->
24
- <DIV class=catalogentry><IMG src="depot_store_files/sk_auto_small.jpg">
25
- <H3>Pragmatic Project Automation</H3>
26
- <P><EM>Pragmatic Project Automation</EM> shows you how to improve the
27
- consistency and repeatability of your project's procedures using automation to
28
- reduce risk and errors. </P>
29
- <P>Simply put, we're going to put this thing called a computer to work for you
30
- doing the mundane (but important) project stuff. That means you'll have more
31
- time and energy to do the really exciting---and difficult---stuff, like writing
32
- quality code. </P><SPAN class=catalogprice>$29.95</SPAN> <A class=addtocart
33
- href="http://localhost:3000/store/add_to_cart/4">Add to Cart</A><BR></DIV>
34
- <DIV class=separator>&nbsp;</DIV>
35
- <DIV class=catalogentry><IMG src="depot_store_files/sk_svn_small.jpg">
36
- <H3>Pragmatic Version Control</H3>
37
- <P>This book is a recipe-based approach to using Subversion that will get you up
38
- and running quickly---and correctly. All projects need version control: it's a
39
- foundational piece of any project's infrastructure. Yet half of all project
40
- teams in the U.S. don't use any version control at all. Many others don't use it
41
- well, and end up experiencing time-consuming problems. </P><SPAN
42
- class=catalogprice>$29.95</SPAN> <A class=addtocart
43
- href="http://localhost:3000/store/add_to_cart/12">Add to Cart</A><BR></DIV>
44
- <DIV class=separator>&nbsp;</DIV>
45
- <DIV class=catalogentry><IMG src="depot_store_files/sk_utc_small.jpg">
46
- <H3>Pragmatic Unit Testing (C#)</H3>
47
- <P>Pragmatic programmers use feedback to drive their development and personal
48
- processes. The most valuable feedback you can get while coding comes from unit
49
- testing. </P>
50
- <P>Without good tests in place, coding can become a frustrating game of
51
- "whack-a-mole." That's the carnival game where the player strikes at a
52
- mechanical mole; it retreats and another mole pops up on the opposite side of
53
- the field. The moles pop up and down so fast that you end up flailing your
54
- mallet helplessly as the moles continue to pop up where you least expect them.
55
- </P><SPAN class=catalogprice>$29.95</SPAN> <A class=addtocart
56
- href="http://localhost:3000/store/add_to_cart/11">Add to Cart</A><BR></DIV>
57
- <DIV class=separator>&nbsp;</DIV><A
58
- href="http://localhost:3000/store/display_cart">Show my cart</A>
59
- </DIV></DIV></BODY></HTML>
@@ -1,92 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <!doctype html>
3
- <head>
4
- <title>Test page for Div</title>
5
-
6
- <link rel="stylesheet" type="text/css" href="watir_unit_tests.css">
7
-
8
-
9
- </head>
10
- <body>
11
- <br>
12
- <br>
13
- <div id = div1 title = "Test1" >This text is in a div with an id of div1 and title of test1</div>
14
- <br>
15
- <div id = div2 class="blueText">This text is in a div with an id of div2</div>
16
- <br>
17
- <div id = div3 onClick = "javascript:document.all.text1.value=parseInt(document.all.text1.value)+1">This div has an onClick that increments text1</div>
18
- <div id = div4 onClick = "javascript:document.all.text1.value=parseInt(document.all.text1.value)-1">This div has an onClick that decrements text1</div>
19
-
20
- This input field gets its value from div3. Its name is text1<input type = text name = text1 value = 0>
21
- <br>
22
- <br> The following DIVS are used to test buttons and other objects in a div
23
-
24
- <div id=buttons1>
25
- <input type=button name=b1 value="Button 1" onClick="javascript:document.all.div_text1.value='button1';">
26
- </div>
27
- <div id=buttons2>
28
- <input type=button name=b2 value="Button 2" onClick="javascript:document.all.div_text1.value='button2';">
29
- <input type=button name=b3 value="Button 3" onClick="javascript:document.all.div_text1.value='button3';">
30
- </div>
31
-
32
- <div id=text_fields1>
33
- Text1: <input type=textarea name=div_text1 >&nbsp;&nbsp;&nbsp;&nbsp; Text2: <input type=text name=div_text2 >&nbsp;&nbsp;&nbsp;&nbsp; Text3: <input type=text name=div_text3>
34
- </div>
35
-
36
- <div id=hasImages>
37
- <img src = images/triangle.jpg id=img1>
38
- <img src = images/square.jpg id=img2>
39
- <img src = images/circle.jpg id=circle>
40
- </div>
41
-
42
-
43
-
44
-
45
- <br>
46
- <hr>
47
- Span Tests
48
- <br>
49
- <br>
50
- <span id = span1 title = "Test2" >This text is in a span with an id of span1 and title of test2</span>
51
- <br>
52
- <span id = span2 class="blueText">This text is in a span with an id of span2</span>
53
- <br>
54
- <span id = span3 onClick = "javascript:document.all.text2.value=parseInt(document.all.text2.value)+1">This span has an onClick that increments text2</span>
55
- <br>
56
- <span id = span4 onClick = "javascript:document.all.text2.value=parseInt(document.all.text2.value)-1">This span has an onClick that decrements text2</span>
57
- <br>
58
- This input field gets its value from span3. Its name is text1<input type = text name = text2 value = 0>
59
-
60
- <br>
61
- <br> The following spans are used to test buttons and other objects in a span
62
- <br>
63
- <span id=buttons1>
64
- <input type=button name=b1 value="Button 1" onClick="javascript:document.all.span_text1.value='button1';">
65
- </span>
66
- <br>
67
- <span id=buttons2>
68
- <input type=button name=b2 value="Button 2" onClick="javascript:document.all.span_text1.value='button2';">
69
- <input type=button name=b3 value="Button 3" onClick="javascript:document.all.span_text1.value='button3';">
70
- </span>
71
- <br>
72
- <span id=text_fields1>
73
- Text1: <input type=text name=span_text1 >&nbsp;&nbsp;&nbsp;&nbsp; Text2: <input type=text name=span_text2 >&nbsp;&nbsp;&nbsp;&nbsp; Text3: <input type=text name=span_text3>
74
- </span>
75
-
76
-
77
-
78
- <br>
79
- <br>
80
- <p id = number1 title = "P_tag_1" class=redText >This text is in a p with an id of number1 and title of P_tag_1</p>
81
- <br>
82
- <p id = number2 title = "P_tag_2" class=italicText >This text is in a p with an id of number2</p>
83
- <br>
84
- <p id = number3 title = "test_3" class=blueText >This text is in a p with an id of number3</p>
85
-
86
-
87
-
88
-
89
-
90
-
91
- </body>
92
- </html>
@@ -1,21 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>Test</title>
4
- </head>
5
-
6
- <XML ID="Tags">
7
- <Data>
8
- <ButtonList>List</ButtonList>
9
- <ButtonCreate>Create</ButtonCreate>
10
- </Data>
11
- </XML>
12
-
13
-
14
- <body bgcolor="#ffff80">
15
- This is the main portal screen
16
- <div class="ButtonAction">
17
- <a href="missing.html" ONMOUSEOVER="Gen_img_act('ButtonList','')" ONMOUSEOUT="Gen_img_inact('ButtonList','')" NAME="ButtonList" ID="ButtonList" style="text-decoration: none; position:relative"><span ID="ButtonListSpan" class="ButtonLabelOn" style="position:absolute; right:25; text-align: right; top:2; z-index:2; width:60px; height:20px; cursor:hand" ONMOUSEOVER="Gen_img_act('ButtonList','')" ONMOUSEOUT="Gen_img_inact('ButtonList','')" datasrc="#Tags" datafld="ButtonList"></span></a><br>
18
- <a href="missing2.html" ONMOUSEOVER="Gen_img_act('ButtonCreate','')" ONMOUSEOUT="Gen_img_inact('ButtonCreate','')" NAME="ButtonCreate" ID="ButtonCreate" style="text-decoration: none; position:relative"><span ID="ButtonCreateSpan" class="ButtonLabelOn" style="position:absolute; right:25; text-align: right; top:2; z-index:2; width:60px; height:20px; cursor:hand" ONMOUSEOVER="Gen_img_act('ButtonCreate','')" ONMOUSEOUT="Gen_img_inact('ButtonCreate','')" datasrc="#Tags" datafld="ButtonCreate"></span></a>
19
- </div>
20
- </body>
21
- </html>
@@ -1,44 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for File Fields
5
- </title>
6
- </head>
7
- <body>
8
- <br>
9
- <br>
10
- <table>
11
-
12
- <tr>
13
- <td>
14
- <input type = file name = file1 value = 'fileupload.html' class='file_class' >number 1
15
- <br>
16
- <input type = file id= file2 value = 'fileupload.html'>
17
-
18
-
19
- <td>These file fields are not in a form
20
-
21
-
22
- <tr>
23
- <td>
24
- <input type = file name = disabled value = 'fileupload.html' disabled>
25
- <td>
26
- Disabled file box
27
-
28
- <form name = test1 method = get action = pass.html>
29
- <tr>
30
- <td>
31
- <input type = file name = file3 value = 'fileupload.html'>
32
- <td> This is used in file1 in form test1
33
-
34
- <input name="upload" type="submit" value="upload">
35
- </form>
36
- </table>
37
-
38
- These file fields are used to test :beforeText and :afterText
39
- <br>
40
- <input type = file name = beforetest value = 'fileupload.html'>This Text After
41
- <br>
42
- This Text Before<input type = file name=aftertest value = 'fileupload.html'>
43
-
44
- </html>
@@ -1,38 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for forms
5
- </title>
6
- </head>
7
- <body>
8
- <br>
9
- <br>
10
- <table>
11
- <tr>
12
- <td>
13
- <form name = test1 method = get action = pass.html>
14
-
15
- <input type = button name = b1 id = b2 value = "Click Me" onClick="javascript:document.location='pass.html';">
16
- <br><input type = button name = b4 id=b5 value = "Disabled Button" onClick="javascript:document.location='fail.html';" disabled>
17
-
18
- </form>
19
- <td> this form has name = test1 method = get action = pass.html
20
-
21
-
22
- <tr>
23
- <td>
24
- <form name = test2 method = get action = pass2.html>
25
- <br><input type = submit value=Submit>
26
- </form>
27
- <td> this form has name = test2 method = get action = pass2.html
28
-
29
- <tr>
30
- <td>
31
- <form id = test3 method = post action = pass3.html>
32
- <br><input type = image src=images/image1.gif name =sub3>
33
- </form>
34
- <td> this form has id = test3 method = post action = pass3.html
35
-
36
-
37
-
38
- </html>
@@ -1,44 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for Forms
5
- </title>
6
- </head>
7
- <body>
8
- <br>
9
- <br>
10
- <table>
11
- <tr>
12
- <td>
13
- <form method = get action = pass.html>
14
- <input type = button name = b1 id = b2 value = "Click Me" >
15
- </form>
16
-
17
- <td> Form with no name
18
-
19
-
20
- <tr>
21
- <td>
22
- <form name = test2 id = f2 method = get action = pass2.html>
23
- <br><input type = submit value=Submit>
24
- </form
25
- <td> This form is identical to the one above
26
-
27
-
28
-
29
- <tr>
30
- <td>
31
- <form name = test3 method = get action = pass2.html>
32
- <br><input type = submit value=Submit>
33
- </form
34
- <td> This form has a name
35
- <tr>
36
- <td>
37
- <form name = test2 method = get action = pass2.html>
38
- <br><input type = submit value=Submit>
39
- </form
40
- <td> This form has a name
41
-
42
-
43
- </body>
44
- </html>
@@ -1,131 +0,0 @@
1
- <!doctype 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
- <br>
21
- <br>
22
- <table>
23
- <tr>
24
- <td>
25
- <form method = get action = pass.html>
26
- <input type = button name = b1 id = b2 value = "Click Me" >
27
- </form>
28
-
29
- <td>
30
-
31
-
32
- <tr>
33
- <td>
34
- <form name = test2 method = get action = pass2.html>
35
- <ul>
36
- <li>ListItem1 </li>
37
- <li><span>ListItem2</span></li>
38
- </ul>
39
-
40
-
41
- <br><input type = checkbox name = check1 value = 10 >
42
- <br><input type = checkbox name = check1 value = 20 >
43
- <br><input type = checkbox name = check1 value = 30 >
44
-
45
- <br><input selected type = radio name = r1 value = 'a' >
46
- <br><input type = radio name = r1 value = 'b' >
47
- <br><input type = radio name = r1 value = 'c' >
48
- <br><input type = radio name = r1 value = 'd' >
49
-
50
- <br><input type = text id = t1>
51
- <br><input type = text id = t2>
52
-
53
- <br><select name = s1>
54
- <option>1</option>
55
- <option>2</option>
56
- </select>
57
-
58
- <br><select multiple visible=3 name = s2>
59
- <option>1</option>
60
- <option>2</option>
61
- <option>3</option>
62
- <option>4</option>
63
- <option>5</option>
64
- <option>6</option>
65
-
66
- </select>
67
-
68
-
69
-
70
- <br><input type = submit value=Submit><input type = reset id = reset_button>
71
-
72
-
73
-
74
-
75
- </form>
76
- <td>
77
- <tr bgcolor=blue>
78
- <td>
79
- <input type = text name = g1 value = 'textfield' >
80
- <br>
81
- <input type = button name = g1 value ='button'>
82
- <br>
83
- <input type = checkbox name = g1 value='1'>
84
- <br>
85
- <input type = radio name = g1 value = '2'>
86
- <br>
87
-
88
- <td> These objects all have the same name
89
-
90
-
91
- <tr bgcolor=lightblue>
92
- <td >
93
- <input type = text id = g1 value = 'textfield_id' >
94
- <br>
95
- <input type = button id = g1 value ='button_id'>
96
- <br>
97
- <input type = checkbox id= g1 value='1_id'>
98
- <br>
99
- <input type = radio id = g1 value = '2_id'>
100
- <br>
101
-
102
- <td> These objects all have the same id
103
-
104
- <tr>
105
- <td>
106
- <form name = buttonsubmit method = get action = pass.html>
107
- <p>This form has a submit button that is an image</p>
108
- <input type = text name = tt1>
109
- <input type = image src = images/button.jpg alt = "submit" name=imm>
110
- </form>
111
-
112
- <form name = has_a_hidden>
113
- This is in a form. The form has hidden objects.
114
- <br>
115
- The first has a name - hid1<input type = hidden name = hid1>
116
- <br>
117
- The second has an id- hidden_1<input type = hidden id= hidden_1>
118
-
119
- Click This Button to see the values in these boxes
120
- <input type = button value='Show Hidden' onClick='javascript:showHidden();'>
121
- <br>
122
- <input type = text name = vis1>
123
- <br>
124
- <input type = text name = vis2>
125
-
126
- </form
127
-
128
-
129
-
130
- </body>
131
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <!doctype html>
3
- <head>
4
- <title>Test page for forms</title>
5
- </head>
6
- <body>
7
- <br>
8
- <br>
9
- <table>
10
- <tbody>
11
- <tr>
12
- <td>
13
- <form name="apple_form" method="get" action="pass.html"> <input
14
- name="name" value="apple" type="text"> </form>
15
- </td>
16
- </tr>
17
- <tr>
18
- <td>
19
- <form name="banana_form" method="get" action="pass2.html"> <input
20
- name="name" value="banana" type="text"> </form>
21
- </td>
22
- </tr>
23
- </tbody>
24
- </table>
25
- </body>
26
- </html>