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.
- data/Rakefile +5 -0
- data/lib/watir.rb +1 -0
- data/lib/watir/loader.rb +2 -0
- data/lib/watir/version.rb +3 -0
- data/watir.gemspec +18 -54
- metadata +32 -278
- data/CHANGES +0 -712
- data/LICENSE +0 -34
- data/README.rdoc +0 -101
- data/VERSION +0 -1
- data/bin/watir-console +0 -7
- data/lib/watir/IEDialog/Release/IEDialog.dll +0 -0
- data/lib/watir/close_all.rb +0 -31
- data/lib/watir/container.rb +0 -110
- data/lib/watir/contrib/enabled_popup.rb +0 -21
- data/lib/watir/contrib/ie-new-process.rb +0 -27
- data/lib/watir/contrib/page_checker.rb +0 -29
- data/lib/watir/cookies.rb +0 -80
- data/lib/watir/core.rb +0 -43
- data/lib/watir/dialogs/file_field.rb +0 -34
- data/lib/watir/dialogs/javascript.rb +0 -43
- data/lib/watir/drag_and_drop_helper.rb +0 -68
- data/lib/watir/element.rb +0 -441
- data/lib/watir/element_collection.rb +0 -109
- data/lib/watir/form.rb +0 -96
- data/lib/watir/frame.rb +0 -47
- data/lib/watir/ie-class.rb +0 -765
- data/lib/watir/ie-process.rb +0 -47
- data/lib/watir/ie.rb +0 -20
- data/lib/watir/image.rb +0 -111
- data/lib/watir/input_elements.rb +0 -480
- data/lib/watir/irb-history.rb +0 -31
- data/lib/watir/link.rb +0 -46
- data/lib/watir/locator.rb +0 -243
- data/lib/watir/logger.rb +0 -19
- data/lib/watir/modal_dialog.rb +0 -72
- data/lib/watir/module.rb +0 -12
- data/lib/watir/non_control_elements.rb +0 -114
- data/lib/watir/page-container.rb +0 -108
- data/lib/watir/process.rb +0 -20
- data/lib/watir/screen_capture.rb +0 -115
- data/lib/watir/supported_elements.rb +0 -172
- data/lib/watir/table.rb +0 -224
- data/lib/watir/win32.rb +0 -40
- data/lib/watir/win32ole.rb +0 -16
- data/lib/watir/win32ole/1.8.7/win32ole.so +0 -0
- data/lib/watir/win32ole/1.9.3/win32ole.so +0 -0
- data/lib/watir/window.rb +0 -68
- data/lib/watir/xpath_locator.rb +0 -52
- data/rakefile.rb +0 -54
- data/unittests/all_tests.rb +0 -10
- data/unittests/buttons_xpath_test.rb +0 -68
- data/unittests/checkbox_test.rb +0 -163
- data/unittests/checkbox_xpath_test.rb +0 -106
- data/unittests/click_no_wait_test.rb +0 -23
- data/unittests/close_all_test.rb +0 -17
- data/unittests/core_tests.rb +0 -17
- data/unittests/css_selector_test.rb +0 -44
- data/unittests/css_test.rb +0 -38
- data/unittests/dialog_test.rb +0 -64
- data/unittests/div2_xpath_test.rb +0 -21
- data/unittests/div_test.rb +0 -170
- data/unittests/div_xpath_test.rb +0 -95
- data/unittests/document_standards.rb +0 -63
- data/unittests/element_collection_indexes_test.rb +0 -57
- data/unittests/element_collections_test.rb +0 -100
- data/unittests/element_test.rb +0 -47
- data/unittests/errorchecker_test.rb +0 -31
- data/unittests/filefield_test.rb +0 -43
- data/unittests/filefield_xpath_test.rb +0 -35
- data/unittests/form_test.rb +0 -282
- data/unittests/form_xpath_test.rb +0 -254
- data/unittests/frame_test.rb +0 -165
- data/unittests/google_form_test.rb +0 -15
- data/unittests/html/JavascriptClick.html +0 -39
- data/unittests/html/blankpage.html +0 -11
- data/unittests/html/buttons1.html +0 -40
- data/unittests/html/checkboxes1.html +0 -89
- data/unittests/html/click_no_wait.html +0 -14
- data/unittests/html/complex_table.html +0 -35
- data/unittests/html/cssTest.html +0 -42
- data/unittests/html/depot_store.html +0 -59
- data/unittests/html/div.html +0 -92
- data/unittests/html/div_xml.html +0 -21
- data/unittests/html/fileupload.html +0 -44
- data/unittests/html/formTest1.html +0 -38
- data/unittests/html/forms2.html +0 -44
- data/unittests/html/forms3.html +0 -131
- data/unittests/html/forms4.html +0 -26
- data/unittests/html/frame_buttons.html +0 -4
- data/unittests/html/frame_links.html +0 -4
- data/unittests/html/frame_multi.html +0 -5
- data/unittests/html/google_india.html +0 -119
- data/unittests/html/ie7_document_standards.html +0 -9
- data/unittests/html/ie8_document_standards.html +0 -9
- data/unittests/html/ie9_document_standards.html +0 -9
- data/unittests/html/iframe.html +0 -3
- data/unittests/html/iframeTest.html +0 -17
- data/unittests/html/iframeTest1.html +0 -7
- data/unittests/html/iframeTest2.html +0 -5
- 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 +0 -65
- data/unittests/html/javascriptevents.html +0 -33
- data/unittests/html/link_pass.html +0 -11
- data/unittests/html/links1.html +0 -37
- data/unittests/html/links2.html +0 -11
- data/unittests/html/links_multi.html +0 -12
- data/unittests/html/list_matters.html +0 -720
- data/unittests/html/lists.html +0 -18
- data/unittests/html/map_test.html +0 -30
- data/unittests/html/modal_dialog.html +0 -10
- data/unittests/html/modal_dialog_launcher.html +0 -12
- data/unittests/html/multiple_specifiers.html +0 -64
- data/unittests/html/nestedFrames.html +0 -6
- data/unittests/html/new_browser.html +0 -17
- data/unittests/html/pass.html +0 -13
- data/unittests/html/popups1.html +0 -59
- data/unittests/html/pre.html +0 -29
- data/unittests/html/quirks_document_standards.html +0 -8
- data/unittests/html/radioButtons1.html +0 -71
- data/unittests/html/select_tealeaf.html +0 -54
- data/unittests/html/selectboxes1.html +0 -52
- data/unittests/html/simple_table.html +0 -25
- data/unittests/html/simple_table_buttons.html +0 -104
- data/unittests/html/simple_table_columns.html +0 -75
- data/unittests/html/table1.html +0 -179
- data/unittests/html/tableCell_using_xpath.html +0 -19
- data/unittests/html/table_and_tablerow_to_a.html +0 -174
- data/unittests/html/textarea.html +0 -30
- data/unittests/html/textfields1.html +0 -100
- data/unittests/html/textsearch.html +0 -44
- data/unittests/html/wallofcheckboxes.html +0 -1003
- data/unittests/html/xpath_nbsp.html +0 -11
- data/unittests/html/zeroindex.html +0 -11
- data/unittests/ie_exists_test.rb +0 -16
- data/unittests/ie_mock.rb +0 -94
- data/unittests/ie_test.rb +0 -54
- data/unittests/images_test.rb +0 -156
- data/unittests/images_xpath_test.rb +0 -90
- data/unittests/index_specifier_test.rb +0 -31
- data/unittests/js_events_test.rb +0 -31
- data/unittests/links_multi_test.rb +0 -34
- data/unittests/links_test.rb +0 -131
- data/unittests/links_xpath_test.rb +0 -38
- data/unittests/lists_test.rb +0 -23
- data/unittests/map_test.rb +0 -98
- data/unittests/minmax_test.rb +0 -37
- data/unittests/navigate_test.rb +0 -38
- data/unittests/nbsp_xpath_test.rb +0 -16
- data/unittests/no_wait_test.rb +0 -28
- data/unittests/non_core_tests.rb +0 -12
- data/unittests/other/all_tests_concurrent.rb +0 -57
- data/unittests/other/navigate_exception_test.rb +0 -24
- data/unittests/other/rexml_unit_test.rb +0 -27
- data/unittests/other/screen_capture_test.rb +0 -53
- data/unittests/other/testcase_method_order_test.rb +0 -36
- data/unittests/other/testcase_verify_test.rb +0 -25
- data/unittests/other/wait_until_test.rb +0 -102
- data/unittests/pagecontainstext_test.rb +0 -69
- data/unittests/parent_child_test.rb +0 -27
- data/unittests/perf_test.rb +0 -20
- data/unittests/pre_test.rb +0 -49
- data/unittests/radios_test.rb +0 -181
- data/unittests/radios_xpath_test.rb +0 -100
- data/unittests/security_setting_test.rb +0 -24
- data/unittests/selectbox_test.rb +0 -144
- data/unittests/selectbox_xpath_test.rb +0 -102
- data/unittests/setup.rb +0 -70
- data/unittests/speed_settings_test.rb +0 -67
- data/unittests/table_cell_using_xpath_test.rb +0 -34
- data/unittests/table_test.rb +0 -296
- data/unittests/table_xpath_test.rb +0 -109
- data/unittests/test_tests.rb +0 -9
- data/unittests/textarea_test.rb +0 -92
- data/unittests/textarea_xpath_test.rb +0 -77
- data/unittests/textfield_for_ch_char_test.rb +0 -32
- data/unittests/textfields_test.rb +0 -184
- data/unittests/textfields_xpath_test.rb +0 -110
- data/unittests/version_test.rb +0 -15
- data/unittests/win32ole_so_test.rb +0 -35
- data/unittests/window_tests.rb +0 -10
- data/unittests/windows/attach_to_existing_window_test.rb +0 -52
- data/unittests/windows/attach_to_new_window_test.rb +0 -74
- data/unittests/windows/close_window_test.rb +0 -20
- data/unittests/windows/frame_links_test.rb +0 -23
- data/unittests/windows/ie-each_test.rb +0 -46
- data/unittests/windows/modal_dialog_test.rb +0 -95
- data/unittests/windows/new_process_test.rb +0 -24
- data/unittests/windows/new_test.rb +0 -58
- data/unittests/windows/open_close_test.rb +0 -19
- data/unittests/windows/send_keys_test.rb +0 -26
- data/unittests/xpath_tests.rb +0 -11
- 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> </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>
|
data/unittests/html/div.html
DELETED
@@ -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 > 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>
|
data/unittests/html/div_xml.html
DELETED
@@ -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>
|
data/unittests/html/forms2.html
DELETED
@@ -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>
|
data/unittests/html/forms3.html
DELETED
@@ -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>
|
data/unittests/html/forms4.html
DELETED
@@ -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>
|