watir-classic 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +721 -0
- data/LICENSE +34 -0
- data/README.rdoc +78 -0
- data/VERSION +1 -0
- data/bin/watir-console +5 -0
- data/lib/watir-classic.rb +14 -0
- data/lib/watir-classic/IEDialog/Release/IEDialog.dll +0 -0
- data/lib/watir-classic/assertions.rb +44 -0
- data/lib/watir-classic/browser.rb +149 -0
- data/lib/watir-classic/browsers.rb +7 -0
- data/lib/watir-classic/close_all.rb +31 -0
- data/lib/watir-classic/container.rb +110 -0
- data/lib/watir-classic/contrib/enabled_popup.rb +21 -0
- data/lib/watir-classic/contrib/ie-new-process.rb +27 -0
- data/lib/watir-classic/contrib/page_checker.rb +29 -0
- data/lib/watir-classic/cookies.rb +80 -0
- data/lib/watir-classic/core.rb +43 -0
- data/lib/watir-classic/dialogs/file_field.rb +34 -0
- data/lib/watir-classic/dialogs/javascript.rb +43 -0
- data/lib/watir-classic/drag_and_drop_helper.rb +68 -0
- data/lib/watir-classic/element.rb +438 -0
- data/lib/watir-classic/element_collection.rb +109 -0
- data/lib/watir-classic/element_extensions.rb +69 -0
- data/lib/watir-classic/exceptions.rb +50 -0
- data/lib/watir-classic/form.rb +96 -0
- data/lib/watir-classic/frame.rb +47 -0
- data/lib/watir-classic/ie-class.rb +767 -0
- data/lib/watir-classic/ie-process.rb +47 -0
- data/lib/watir-classic/ie.rb +20 -0
- data/lib/watir-classic/image.rb +111 -0
- data/lib/watir-classic/input_elements.rb +480 -0
- data/lib/watir-classic/irb-history.rb +31 -0
- data/lib/watir-classic/link.rb +46 -0
- data/lib/watir-classic/locator.rb +243 -0
- data/lib/watir-classic/logger.rb +19 -0
- data/lib/watir-classic/matches.rb +23 -0
- data/lib/watir-classic/modal_dialog.rb +72 -0
- data/lib/watir-classic/module.rb +12 -0
- data/lib/watir-classic/non_control_elements.rb +114 -0
- data/lib/watir-classic/options.rb +56 -0
- data/lib/watir-classic/page-container.rb +114 -0
- data/lib/watir-classic/process.rb +20 -0
- data/lib/watir-classic/screen_capture.rb +115 -0
- data/lib/watir-classic/supported_elements.rb +172 -0
- data/lib/watir-classic/table.rb +224 -0
- data/lib/watir-classic/testcase.rb +97 -0
- data/lib/watir-classic/util.rb +35 -0
- data/lib/watir-classic/version.rb +4 -0
- data/lib/watir-classic/wait.rb +41 -0
- data/lib/watir-classic/wait_helper.rb +12 -0
- data/lib/watir-classic/waiter.rb +98 -0
- data/lib/watir-classic/win32.rb +40 -0
- data/lib/watir-classic/win32ole.rb +16 -0
- data/lib/watir-classic/win32ole/1.8.7/win32ole.so +0 -0
- data/lib/watir-classic/win32ole/1.9.3/win32ole.so +0 -0
- data/lib/watir-classic/window.rb +68 -0
- data/lib/watir-classic/xpath_locator.rb +52 -0
- data/rakefile.rb +54 -0
- data/unittests/all_tests.rb +10 -0
- data/unittests/buttons_xpath_test.rb +68 -0
- data/unittests/checkbox_test.rb +163 -0
- data/unittests/checkbox_xpath_test.rb +106 -0
- data/unittests/click_no_wait_test.rb +23 -0
- data/unittests/close_all_test.rb +17 -0
- data/unittests/core_tests.rb +17 -0
- data/unittests/css_selector_test.rb +44 -0
- data/unittests/css_test.rb +38 -0
- data/unittests/dialog_test.rb +64 -0
- data/unittests/div2_xpath_test.rb +21 -0
- data/unittests/div_test.rb +170 -0
- data/unittests/div_xpath_test.rb +95 -0
- data/unittests/document_standards.rb +63 -0
- data/unittests/element_collection_indexes_test.rb +57 -0
- data/unittests/element_collections_test.rb +100 -0
- data/unittests/element_test.rb +47 -0
- data/unittests/errorchecker_test.rb +31 -0
- data/unittests/filefield_test.rb +43 -0
- data/unittests/filefield_xpath_test.rb +35 -0
- data/unittests/form_test.rb +282 -0
- data/unittests/form_xpath_test.rb +254 -0
- data/unittests/frame_test.rb +165 -0
- data/unittests/google_form_test.rb +15 -0
- data/unittests/html/JavascriptClick.html +39 -0
- data/unittests/html/blankpage.html +11 -0
- data/unittests/html/buttons1.html +40 -0
- data/unittests/html/checkboxes1.html +89 -0
- data/unittests/html/click_no_wait.html +14 -0
- data/unittests/html/complex_table.html +35 -0
- data/unittests/html/cssTest.html +42 -0
- data/unittests/html/depot_store.html +59 -0
- data/unittests/html/div.html +92 -0
- data/unittests/html/div_xml.html +21 -0
- data/unittests/html/fileupload.html +44 -0
- data/unittests/html/formTest1.html +38 -0
- data/unittests/html/forms2.html +44 -0
- data/unittests/html/forms3.html +131 -0
- data/unittests/html/forms4.html +26 -0
- data/unittests/html/frame_buttons.html +4 -0
- data/unittests/html/frame_links.html +4 -0
- data/unittests/html/frame_multi.html +5 -0
- data/unittests/html/google_india.html +119 -0
- data/unittests/html/ie7_document_standards.html +9 -0
- data/unittests/html/ie8_document_standards.html +9 -0
- data/unittests/html/ie9_document_standards.html +9 -0
- data/unittests/html/iframe.html +3 -0
- data/unittests/html/iframeTest.html +17 -0
- data/unittests/html/iframeTest1.html +7 -0
- data/unittests/html/iframeTest2.html +5 -0
- data/unittests/html/images/1.gif +0 -0
- data/unittests/html/images/2.GIF +0 -0
- data/unittests/html/images/3.GIF +0 -0
- data/unittests/html/images/button.jpg +0 -0
- data/unittests/html/images/circle.jpg +0 -0
- data/unittests/html/images/map.GIF +0 -0
- data/unittests/html/images/map2.gif +0 -0
- data/unittests/html/images/minus.GIF +0 -0
- data/unittests/html/images/originaltriangle.jpg +0 -0
- data/unittests/html/images/plus.gif +0 -0
- data/unittests/html/images/square.jpg +0 -0
- data/unittests/html/images/triangle.jpg +0 -0
- data/unittests/html/images1.html +65 -0
- data/unittests/html/javascriptevents.html +33 -0
- data/unittests/html/link_pass.html +11 -0
- data/unittests/html/links1.html +37 -0
- data/unittests/html/links2.html +11 -0
- data/unittests/html/links_multi.html +12 -0
- data/unittests/html/list_matters.html +720 -0
- data/unittests/html/lists.html +18 -0
- data/unittests/html/map_test.html +30 -0
- data/unittests/html/modal_dialog.html +10 -0
- data/unittests/html/modal_dialog_launcher.html +12 -0
- data/unittests/html/multiple_specifiers.html +64 -0
- data/unittests/html/nestedFrames.html +6 -0
- data/unittests/html/new_browser.html +17 -0
- data/unittests/html/pass.html +13 -0
- data/unittests/html/popups1.html +59 -0
- data/unittests/html/pre.html +29 -0
- data/unittests/html/quirks_document_standards.html +8 -0
- data/unittests/html/radioButtons1.html +71 -0
- data/unittests/html/select_tealeaf.html +54 -0
- data/unittests/html/selectboxes1.html +52 -0
- data/unittests/html/simple_table.html +25 -0
- data/unittests/html/simple_table_buttons.html +104 -0
- data/unittests/html/simple_table_columns.html +75 -0
- data/unittests/html/table1.html +179 -0
- data/unittests/html/tableCell_using_xpath.html +19 -0
- data/unittests/html/table_and_tablerow_to_a.html +174 -0
- data/unittests/html/textarea.html +30 -0
- data/unittests/html/textfields1.html +100 -0
- data/unittests/html/textsearch.html +44 -0
- data/unittests/html/wallofcheckboxes.html +1003 -0
- data/unittests/html/xpath_nbsp.html +11 -0
- data/unittests/html/zeroindex.html +11 -0
- data/unittests/ie_exists_test.rb +16 -0
- data/unittests/ie_mock.rb +94 -0
- data/unittests/ie_test.rb +54 -0
- data/unittests/images_test.rb +156 -0
- data/unittests/images_xpath_test.rb +90 -0
- data/unittests/index_specifier_test.rb +31 -0
- data/unittests/js_events_test.rb +31 -0
- data/unittests/links_multi_test.rb +34 -0
- data/unittests/links_test.rb +131 -0
- data/unittests/links_xpath_test.rb +38 -0
- data/unittests/lists_test.rb +23 -0
- data/unittests/map_test.rb +98 -0
- data/unittests/minmax_test.rb +37 -0
- data/unittests/navigate_test.rb +38 -0
- data/unittests/nbsp_xpath_test.rb +16 -0
- data/unittests/no_wait_test.rb +28 -0
- data/unittests/non_core_tests.rb +12 -0
- data/unittests/other/all_tests_concurrent.rb +57 -0
- data/unittests/other/navigate_exception_test.rb +24 -0
- data/unittests/other/rexml_unit_test.rb +27 -0
- data/unittests/other/screen_capture_test.rb +53 -0
- data/unittests/other/testcase_method_order_test.rb +36 -0
- data/unittests/other/testcase_verify_test.rb +25 -0
- data/unittests/other/wait_until_test.rb +102 -0
- data/unittests/pagecontainstext_test.rb +69 -0
- data/unittests/parent_child_test.rb +27 -0
- data/unittests/perf_test.rb +20 -0
- data/unittests/pre_test.rb +49 -0
- data/unittests/radios_test.rb +181 -0
- data/unittests/radios_xpath_test.rb +100 -0
- data/unittests/security_setting_test.rb +24 -0
- data/unittests/selectbox_test.rb +144 -0
- data/unittests/selectbox_xpath_test.rb +102 -0
- data/unittests/setup.rb +69 -0
- data/unittests/speed_settings_test.rb +67 -0
- data/unittests/table_cell_using_xpath_test.rb +34 -0
- data/unittests/table_test.rb +296 -0
- data/unittests/table_xpath_test.rb +109 -0
- data/unittests/test_tests.rb +9 -0
- data/unittests/textarea_test.rb +92 -0
- data/unittests/textarea_xpath_test.rb +77 -0
- data/unittests/textfield_for_ch_char_test.rb +32 -0
- data/unittests/textfields_test.rb +184 -0
- data/unittests/textfields_xpath_test.rb +110 -0
- data/unittests/version_test.rb +15 -0
- data/unittests/win32ole_so_test.rb +35 -0
- data/unittests/window_tests.rb +10 -0
- data/unittests/windows/attach_to_existing_window_test.rb +52 -0
- data/unittests/windows/attach_to_new_window_test.rb +74 -0
- data/unittests/windows/close_window_test.rb +20 -0
- data/unittests/windows/frame_links_test.rb +23 -0
- data/unittests/windows/ie-each_test.rb +46 -0
- data/unittests/windows/modal_dialog_test.rb +95 -0
- data/unittests/windows/new_process_test.rb +24 -0
- data/unittests/windows/new_test.rb +58 -0
- data/unittests/windows/open_close_test.rb +19 -0
- data/unittests/windows/send_keys_test.rb +26 -0
- data/unittests/xpath_tests.rb +11 -0
- data/watir-rdoc.rb +7 -0
- metadata +370 -0
|
@@ -0,0 +1,59 @@
|
|
|
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> </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> </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> </DIV><A
|
|
58
|
+
href="http://localhost:3000/store/display_cart">Show my cart</A>
|
|
59
|
+
</DIV></DIV></BODY></HTML>
|
|
@@ -0,0 +1,92 @@
|
|
|
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 > Text2: <input type=text name=div_text2 > 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 > Text2: <input type=text name=span_text2 > 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>
|
|
@@ -0,0 +1,21 @@
|
|
|
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>
|
|
@@ -0,0 +1,44 @@
|
|
|
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>
|
|
@@ -0,0 +1,38 @@
|
|
|
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>
|
|
@@ -0,0 +1,44 @@
|
|
|
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>
|
|
@@ -0,0 +1,131 @@
|
|
|
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>
|
|
@@ -0,0 +1,26 @@
|
|
|
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>
|