operawatir 0.3-jruby

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. data/.gitmodules +3 -0
  2. data/.yardopts +5 -0
  3. data/AUTHORS +7 -0
  4. data/Gemfile +9 -0
  5. data/LICENSE +30 -0
  6. data/README.md +158 -0
  7. data/Rakefile +59 -0
  8. data/VERSION +1 -0
  9. data/bin/desktopwatir +106 -0
  10. data/bin/operawatir +95 -0
  11. data/lib/operadriver/APACHE_2.0_LICENSE.txt +204 -0
  12. data/lib/operadriver/NEW_BSD_LICENSE.txt +36 -0
  13. data/lib/operadriver/commons-jxpath-1.3.jar +0 -0
  14. data/lib/operadriver/protobuf-java-2.3.0.jar +0 -0
  15. data/lib/operadriver/selenium-common.jar +0 -0
  16. data/lib/operadriver/webdriver-opera.jar +0 -0
  17. data/lib/operawatir.rb +46 -0
  18. data/lib/operawatir/browser.rb +181 -0
  19. data/lib/operawatir/collection.rb +133 -0
  20. data/lib/operawatir/compat.rb +25 -0
  21. data/lib/operawatir/compat/browser.rb +20 -0
  22. data/lib/operawatir/compat/collection.rb +99 -0
  23. data/lib/operawatir/compat/deprecation.rb +46 -0
  24. data/lib/operawatir/compat/element.rb +165 -0
  25. data/lib/operawatir/compat/element_finders.rb +159 -0
  26. data/lib/operawatir/compat/window.rb +27 -0
  27. data/lib/operawatir/element.rb +228 -0
  28. data/lib/operawatir/exceptions.rb +38 -0
  29. data/lib/operawatir/helper.rb +53 -0
  30. data/lib/operawatir/selector.rb +111 -0
  31. data/lib/operawatir/version.rb +15 -0
  32. data/lib/operawatir/window.rb +174 -0
  33. data/spec/fire_event/fire_event.rb +268 -0
  34. data/spec/fire_event/interactive/onBlur.html +45 -0
  35. data/spec/fire_event/interactive/onChange.html +47 -0
  36. data/spec/fire_event/interactive/onClick.html +45 -0
  37. data/spec/fire_event/interactive/onDblClick.html +45 -0
  38. data/spec/fire_event/interactive/onFocus.html +45 -0
  39. data/spec/fire_event/interactive/onMouseDown.html +45 -0
  40. data/spec/fire_event/interactive/onMouseMove.html +45 -0
  41. data/spec/fire_event/interactive/onMouseOut.html +45 -0
  42. data/spec/fire_event/interactive/onMouseOver.html +45 -0
  43. data/spec/fire_event/interactive/onMouseUp.html +45 -0
  44. data/spec/fire_event/interactive/onScroll.html +14 -0
  45. data/spec/legacy_watirspec/area_spec.rb +106 -0
  46. data/spec/legacy_watirspec/areas_spec.rb +38 -0
  47. data/spec/legacy_watirspec/browser_spec.rb +297 -0
  48. data/spec/legacy_watirspec/button_spec.rb +260 -0
  49. data/spec/legacy_watirspec/buttons_spec.rb +54 -0
  50. data/spec/legacy_watirspec/checkbox_spec.rb +280 -0
  51. data/spec/legacy_watirspec/checkboxes_spec.rb +38 -0
  52. data/spec/legacy_watirspec/collections_spec.rb +18 -0
  53. data/spec/legacy_watirspec/dd_spec.rb +140 -0
  54. data/spec/legacy_watirspec/dds_spec.rb +38 -0
  55. data/spec/legacy_watirspec/del_spec.rb +181 -0
  56. data/spec/legacy_watirspec/dels_spec.rb +62 -0
  57. data/spec/legacy_watirspec/div_spec.rb +244 -0
  58. data/spec/legacy_watirspec/divs_spec.rb +38 -0
  59. data/spec/legacy_watirspec/dl_spec.rb +140 -0
  60. data/spec/legacy_watirspec/dls_spec.rb +38 -0
  61. data/spec/legacy_watirspec/dt_spec.rb +140 -0
  62. data/spec/legacy_watirspec/dts_spec.rb +38 -0
  63. data/spec/legacy_watirspec/element_spec.rb +86 -0
  64. data/spec/legacy_watirspec/em_spec.rb +114 -0
  65. data/spec/legacy_watirspec/ems_spec.rb +38 -0
  66. data/spec/legacy_watirspec/filefield_spec.rb +127 -0
  67. data/spec/legacy_watirspec/filefields_spec.rb +38 -0
  68. data/spec/legacy_watirspec/fixtures/2000_spans.html +2009 -0
  69. data/spec/legacy_watirspec/fixtures/bug_duplicate_attributes.html +14 -0
  70. data/spec/legacy_watirspec/fixtures/bug_javascript_001.html +11 -0
  71. data/spec/legacy_watirspec/fixtures/buttons_with_duplicate_ids.html +18 -0
  72. data/spec/legacy_watirspec/fixtures/collections.html +15 -0
  73. data/spec/legacy_watirspec/fixtures/definition_lists.html +48 -0
  74. data/spec/legacy_watirspec/fixtures/euc-jp_text.html +17 -0
  75. data/spec/legacy_watirspec/fixtures/forms_with_input_elements.html +126 -0
  76. data/spec/legacy_watirspec/fixtures/frame_1.html +18 -0
  77. data/spec/legacy_watirspec/fixtures/frame_2.html +16 -0
  78. data/spec/legacy_watirspec/fixtures/frames.html +11 -0
  79. data/spec/legacy_watirspec/fixtures/iframes.html +12 -0
  80. data/spec/legacy_watirspec/fixtures/images.html +27 -0
  81. data/spec/legacy_watirspec/fixtures/images/1.gif +0 -0
  82. data/spec/legacy_watirspec/fixtures/images/2.gif +0 -0
  83. data/spec/legacy_watirspec/fixtures/images/3.gif +0 -0
  84. data/spec/legacy_watirspec/fixtures/images/button.jpg +0 -0
  85. data/spec/legacy_watirspec/fixtures/images/circle.jpg +0 -0
  86. data/spec/legacy_watirspec/fixtures/images/map.gif +0 -0
  87. data/spec/legacy_watirspec/fixtures/images/map2.gif +0 -0
  88. data/spec/legacy_watirspec/fixtures/images/minus.gif +0 -0
  89. data/spec/legacy_watirspec/fixtures/images/originaltriangle.jpg +0 -0
  90. data/spec/legacy_watirspec/fixtures/images/plus.gif +0 -0
  91. data/spec/legacy_watirspec/fixtures/images/square.jpg +0 -0
  92. data/spec/legacy_watirspec/fixtures/images/triangle.jpg +0 -0
  93. data/spec/legacy_watirspec/fixtures/iso-2022-jp_text.html +17 -0
  94. data/spec/legacy_watirspec/fixtures/javascript/helpers.js +16 -0
  95. data/spec/legacy_watirspec/fixtures/jquery.html +28 -0
  96. data/spec/legacy_watirspec/fixtures/latin1_text.html +17 -0
  97. data/spec/legacy_watirspec/fixtures/multiple_ids.html +14 -0
  98. data/spec/legacy_watirspec/fixtures/non_control_elements.html +135 -0
  99. data/spec/legacy_watirspec/fixtures/parser_bug_001.html +12 -0
  100. data/spec/legacy_watirspec/fixtures/prevent_form_submit.html +20 -0
  101. data/spec/legacy_watirspec/fixtures/right_click.html +11 -0
  102. data/spec/legacy_watirspec/fixtures/shift_jis_text.html +17 -0
  103. data/spec/legacy_watirspec/fixtures/tables.html +121 -0
  104. data/spec/legacy_watirspec/fixtures/timeout.html +16 -0
  105. data/spec/legacy_watirspec/fixtures/timeout_window_location.html +19 -0
  106. data/spec/legacy_watirspec/fixtures/tiny_mce.html +27 -0
  107. data/spec/legacy_watirspec/fixtures/utf8_text.html +15 -0
  108. data/spec/legacy_watirspec/fixtures/watirspec.css +0 -0
  109. data/spec/legacy_watirspec/form_spec.rb +73 -0
  110. data/spec/legacy_watirspec/forms_spec.rb +39 -0
  111. data/spec/legacy_watirspec/frame_spec.rb +161 -0
  112. data/spec/legacy_watirspec/frames_spec.rb +75 -0
  113. data/spec/legacy_watirspec/guards.rb +38 -0
  114. data/spec/legacy_watirspec/hidden_spec.rb +120 -0
  115. data/spec/legacy_watirspec/hiddens_spec.rb +38 -0
  116. data/spec/legacy_watirspec/hn_spec.rb +101 -0
  117. data/spec/legacy_watirspec/hns_spec.rb +39 -0
  118. data/spec/legacy_watirspec/image_spec.rb +237 -0
  119. data/spec/legacy_watirspec/images_spec.rb +38 -0
  120. data/spec/legacy_watirspec/ins_spec.rb +181 -0
  121. data/spec/legacy_watirspec/inses_spec.rb +62 -0
  122. data/spec/legacy_watirspec/label_spec.rb +85 -0
  123. data/spec/legacy_watirspec/labels_spec.rb +38 -0
  124. data/spec/legacy_watirspec/li_spec.rb +135 -0
  125. data/spec/legacy_watirspec/link_spec.rb +194 -0
  126. data/spec/legacy_watirspec/links_spec.rb +39 -0
  127. data/spec/legacy_watirspec/lis_spec.rb +38 -0
  128. data/spec/legacy_watirspec/map_spec.rb +100 -0
  129. data/spec/legacy_watirspec/maps_spec.rb +38 -0
  130. data/spec/legacy_watirspec/meta_spec.rb +26 -0
  131. data/spec/legacy_watirspec/metas_spec.rb +36 -0
  132. data/spec/legacy_watirspec/ol_spec.rb +86 -0
  133. data/spec/legacy_watirspec/ols_spec.rb +38 -0
  134. data/spec/legacy_watirspec/option_spec.rb +187 -0
  135. data/spec/legacy_watirspec/p_spec.rb +167 -0
  136. data/spec/legacy_watirspec/pre_spec.rb +133 -0
  137. data/spec/legacy_watirspec/pres_spec.rb +38 -0
  138. data/spec/legacy_watirspec/ps_spec.rb +38 -0
  139. data/spec/legacy_watirspec/radio_spec.rb +286 -0
  140. data/spec/legacy_watirspec/radios_spec.rb +35 -0
  141. data/spec/legacy_watirspec/select_list_spec.rb +326 -0
  142. data/spec/legacy_watirspec/select_lists_spec.rb +39 -0
  143. data/spec/legacy_watirspec/server.rb +91 -0
  144. data/spec/legacy_watirspec/span_spec.rb +181 -0
  145. data/spec/legacy_watirspec/spans_spec.rb +64 -0
  146. data/spec/legacy_watirspec/spec_helper.rb +12 -0
  147. data/spec/legacy_watirspec/strong_spec.rb +97 -0
  148. data/spec/legacy_watirspec/strongs_spec.rb +39 -0
  149. data/spec/legacy_watirspec/table_bodies_spec.rb +61 -0
  150. data/spec/legacy_watirspec/table_body_spec.rb +119 -0
  151. data/spec/legacy_watirspec/table_cell_spec.rb +76 -0
  152. data/spec/legacy_watirspec/table_cells_spec.rb +71 -0
  153. data/spec/legacy_watirspec/table_footer_spec.rb +94 -0
  154. data/spec/legacy_watirspec/table_footers_spec.rb +61 -0
  155. data/spec/legacy_watirspec/table_header_spec.rb +98 -0
  156. data/spec/legacy_watirspec/table_headers_spec.rb +59 -0
  157. data/spec/legacy_watirspec/table_row_spec.rb +104 -0
  158. data/spec/legacy_watirspec/table_rows_spec.rb +64 -0
  159. data/spec/legacy_watirspec/table_spec.rb +170 -0
  160. data/spec/legacy_watirspec/tables_spec.rb +40 -0
  161. data/spec/legacy_watirspec/text_field_spec.rb +315 -0
  162. data/spec/legacy_watirspec/text_fields_spec.rb +38 -0
  163. data/spec/legacy_watirspec/ul_spec.rb +84 -0
  164. data/spec/legacy_watirspec/uls_spec.rb +40 -0
  165. data/spec/legacy_watirspec/watir_compatibility_spec.rb +176 -0
  166. data/spec/legacy_watirspec/watirspec_helper.rb +57 -0
  167. data/utils/Rakefile +79 -0
  168. data/utils/launchers/launcher-linux-i686 +0 -0
  169. data/utils/launchers/launcher-linux-x86_64 +0 -0
  170. data/utils/launchers/launcher-win32-i86pc.exe +0 -0
  171. metadata +404 -0
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Duplicate attributes</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ </head>
7
+ <body>
8
+ <form action="">
9
+ <fieldset>
10
+ <input id="org_id" class="numeric" tabindex="1" type="text" name="org_name" id="org_name" value="" />
11
+ </fieldset>
12
+ </form>
13
+ </body>
14
+ </html>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2
+ <html>
3
+ <head>
4
+ <title>java.lang.StackOverflowError</title>
5
+ </head>
6
+ <body>
7
+ <script>
8
+ document.write('<body>bug</body>');
9
+ </script>
10
+ </body>
11
+ </html>
@@ -0,0 +1,18 @@
1
+ <html>
2
+ <head>
3
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
+ <title>Duplicate id buttons</title>
5
+
6
+ </head>
7
+ <body>
8
+ <form action="foo" name="foo-form" method="get" accept-charset="utf-8">
9
+ <div id="name"></div>
10
+ <input id="next" type="submit" value="Continue &rarr;">
11
+ </form>
12
+
13
+ <form action="bar" name="bar-form" method="get" accept-charset="utf-8">
14
+ <div id="name"></div>
15
+ <input id="next" type="submit" value="Continue &rarr;">
16
+ </form>
17
+ </body>
18
+ </html>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Collections</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
+ </head>
7
+ <body>
8
+ <span id="a_span">
9
+ <div>first_div</div>
10
+ <div>second_div</div>
11
+ <span>first_span</span>
12
+ <span>second_span</span>
13
+ </span>
14
+ </body>
15
+ </html>
@@ -0,0 +1,48 @@
1
+ <html>
2
+ <head>
3
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
+ <title>definition_lists</title>
5
+ </head>
6
+
7
+ <body id="definition_list">
8
+ <dl id="experience-list" class="list" title="experience">
9
+ <dt id="experience" class="industry" title="experience">Experience</dt>
10
+ <dd>11 years</dd>
11
+
12
+ <dt id="education" onclick="this.innerHTML='changed'">Education</dt>
13
+ <dd title="education" onclick="this.innerHTML='changed'">Master</dd>
14
+
15
+ <dt class="current-industry">Current industry</dt>
16
+ <dd class="industry">Architecture</dd>
17
+
18
+ <dt>Previous industry experience</dt>
19
+ <dd class="industry">Architecture</dd>
20
+ </dl>
21
+
22
+ <dl class="personalia">
23
+ <dt id="name" title="name"><div>Name</div></dt>
24
+ <dd id="someone" class="name" title="someone">John Doe</dd>
25
+
26
+ <dt>Address</dt>
27
+ <dd class="address">John Doe</dd>
28
+
29
+ <dt>City</dt>
30
+ <dd id="city">New York</dd>
31
+
32
+ <dt>Country</dt>
33
+ <dd>USA</dd>
34
+
35
+ <dt>Gender</dt>
36
+ <dd>Male</dd>
37
+
38
+ <dt>Age</dt>
39
+ <dd>35</dd>
40
+ </dl>
41
+
42
+ <dl id="noop" onclick="this.innerHTML = 'noop'">
43
+ <dt class="noop"></dt> <!-- empty node -->
44
+ <dd class="noop"></dt> <!-- empty node -->
45
+ </dl>
46
+
47
+ </body>
48
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=euc-jp" />
6
+ <title>
7
+ EUC-JP
8
+ </title>
9
+ </head>
10
+ <body>
11
+ <p>
12
+ ��������ŷ�ʤꡣ
13
+ </p>
14
+ <input type="text" id="charset" value="">
15
+ <input type="text" id="��������ŷ�ʤꡣ" value="">
16
+ </body>
17
+ </html>
@@ -0,0 +1,126 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Forms with input elements</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <meta name="description" content="this is a test page for forms with input elements" />
7
+ <link rel="stylesheet" href="watirspec.css" type="text/css" media="screen" title="no title" charset="utf-8">
8
+ <script src="javascript/helpers.js" type="text/javascript" charset="utf-8"></script>
9
+ </head>
10
+ <body onload="document.forms[0].elements[0].focus()">
11
+ <div id="messages"></div>
12
+ <h1><a href="">User administration</a></h1>
13
+ <h2>Add user</h2>
14
+ <form enctype="multipart/form-data" action="post_to_me" method="post" name="user_new" id="new_user" class="user">
15
+ <fieldset>
16
+ <legend>Personal information</legend>
17
+ <label for="new_user_first_name" id="first_label" onclick="WatirSpec.addMessage('label')">First name</label>
18
+ <input name="new_user_first_name" id="new_user_first_name" class="name" /> <br />
19
+ <label for="new_user_last_name">Last name</label>
20
+ <input type="no_such_type" name="new_user_last_name" id="new_user_last_name" class="name" /> <br />
21
+ <label for="new_user_email">Email address</label>
22
+ <input type="text" name="new_user_email" id="new_user_email" /> <br />
23
+ <label for="new_user_country">Country</label>
24
+ <select name="new_user_country" id="new_user_country" class="country">
25
+ <option class="scandinavia" value="1">Denmark</option>
26
+ <option id="nor" class="scandinavia" value="2" selected="selected">Norway</option>
27
+ <option class="scandinavia" value="3">Sweden</option>
28
+ <option value="4">United Kingdom</option>
29
+ <option value="5">USA</option>
30
+ <option label="Germany" />
31
+ </select> <br />
32
+ <label for="new_user_occupation">Occupation</label>
33
+ <input type="text" name="new_user_occupation" id="new_user_occupation" value="Developer" onfocus="document.getElementById('onfocus_test').innerHTML = 'changed by onfocus event'"/> <br />
34
+ <label for="new_user_species">Species</label>
35
+ <input type="text" name="new_user_species" id="new_user_species" value="Homo sapiens sapiens" disabled="disabled" /> <br />
36
+ <label for="new_user_code">Personal code</label>
37
+ <input type="text" title="Your personal code" name="new_user_code" id="new_user_code" value="HE2FF8" readonly="readonly" /> <br />
38
+ <label for="new_user_languages">Languages</label>
39
+ <select name="new_user_languages" id="new_user_languages" multiple="multiple" onchange="WatirSpec.addMessage('changed language');">
40
+ <option id="danish" value="1">Danish</option>
41
+ <option selected="selected" value="2">English</option>
42
+ <option selected="selected" value="3">Norwegian</option>
43
+ <option>Swedish</option>
44
+ </select> <br />
45
+ <label for="new_user_portrait">Portrait</label>
46
+ <input type="file" name="new_user_portrait" id="new_user_portrait" class="portrait" title="Smile!" onchange="WatirSpec.addMessage(this.value)" /> <br />
47
+ <!-- <input type="file" name="new_user_portrait" id="new_user_portrait" class="portrait" title="Smile!" onchange="document.getElementById('changed_language').innerHTML = 'File onchange triggered'" /> <br /> -->
48
+ <label for="new_user_portrait">Dental records</label>
49
+ <input type="file" name="new_user_teeth" id="new_user_teeth" title="Smile here too!" />
50
+ </fieldset>
51
+ <fieldset>
52
+ <legend>Login information</legend>
53
+ <label for="new_user_username">Username (max 20 characters)</label>
54
+ <input type="text" name="new_user_username" id="new_user_username" maxlength="20" size="20" onkeypress="var elem = document.getElementById('current_length'); elem.innerHTML = parseInt(elem.innerHTML)+1"/> <span id="current_length">0</span><br />
55
+ <label for="new_user_password">Password</label>
56
+ <input type="password" name="new_user_password" id="new_user_password" /> <br />
57
+ <label for="new_user_role">Role</label>
58
+ <select name="new_user_role" id="new_user_role" disabled="disabled">
59
+ <option>Administrator</option>
60
+ <option>Moderator</option>
61
+ <option>Regular user</option>
62
+ </select>
63
+ </fieldset>
64
+ <fieldset>
65
+ <legend>Interests</legend>
66
+ <input type="checkbox" name="new_user_interests" id="new_user_interests_books" value="books" checked="checked" /> <label for="new_user_interests_books">Books</label>
67
+ <input type="checkbox" name="new_user_interests" value="bowling" /> <label>Bowling</label>
68
+ <input type="checkbox" name="new_user_interests" id="new_user_interests_cars" value="cars" /> <label for="new_user_interests_cars">Cars</label>
69
+ <input type="checkbox" name="new_user_interests" id="new_user_interests_dancing" value="dancing" class="fun" title="Dancing is fun!" /> <label for="new_user_interests_dancing">Dancing</label>
70
+ <input type="checkbox" name="new_user_interests" id="new_user_interests_dentistry" value="dentistry" disabled="disabled" /> <label for="new_user_interests_dentistry">Dentistry</label>
71
+ <input type="hidden" name="new_user_interests" id="new_user_interests_dolls" value="dolls" class="fun" />
72
+ <input type="checkbox" id="new_user_interests_food" value="food" /> <label for="new_user_interests_food">Food</label>
73
+ </fieldset>
74
+ <fieldset>
75
+ <legend>Preferences</legend>
76
+ <p>Do you want to recieve our newslettter?</p>
77
+ <input type="radio" name="new_user_newsletter" id="new_user_newsletter_yes" value="yes" checked="checked" class="huge" onclick="WatirSpec.addMessage('clicked: ' + this.id)"/>
78
+ <label for="new_user_newsletter_yes">Yes</label>
79
+ <input type="radio" name="new_user_newsletter" id="new_user_newsletter_no" value="no" title="Traitor!" onclick="WatirSpec.addMessage('clicked: ' + this.id)" />
80
+ <label for="new_user_newsletter_no">No</label>
81
+ <input type="radio" name="new_user_newsletter" value="certainly" onchange="WatirSpec.addMessage('changed: ' + this.name)"/>
82
+ <label>Certainly</label>
83
+ <input type="radio" id="new_user_newsletter_absolutely" value="absolutely" />
84
+ <label for="new_user_newsletter_absolutely">Absolutely</label>
85
+ <input type="radio" name="new_user_newsletter" id="new_user_newsletter_nah" value="nah" disabled="disabled" />
86
+ <label for="new_user_newsletter_nah">Nah</label>
87
+ </fieldset>
88
+ <fieldset>
89
+ <legend>Actions</legend>
90
+ <input type="submit" title="Submit the form" name="new_user_submit" id="new_user_submit" value="Submit" />
91
+ <input type="reset" name="new_user_reset" id="new_user_reset" value="Reset" />
92
+ <input type="button" name="new_user_button" id="new_user_button" alt="Create a new user" value="Button" onclick="this.value = 'new_value_set_by_onclick_event'" />
93
+ <button name="new_user_button_2">Button 2</button>
94
+ <input type="image" class="image" name="new_user_image" src="images/button.jpg" alt="Submittable button" />
95
+ <input type="submit" name="new_user_submit_disabled" id="disabled_button" value="Disabled" disabled="disabled" />
96
+ <input type="checkbox" name="new_user_submit_disabled" id="toggle_button_checkbox" onclick="var elem = document.getElementById('disabled_button'); elem.disabled = !elem.disabled" />
97
+ </fieldset>
98
+ </form>
99
+ <h2>Delete user</h2>
100
+ <form id="delete_user" action="tables.html">
101
+ <fieldset>
102
+ <label for="delete_user_username">Username</label>
103
+ <select name="delete_user_username" id="delete_user_username">
104
+ <option value=""></option>
105
+ <option selected="selected">Username 1</option>
106
+ <option>Username 2</option>
107
+ <option onclick="elem = document.getElementById('delete_user_comment'); elem.value = 'Don\'t do it!'; elem.style.color = 'red';">Username 3</option>
108
+ </select> <br />
109
+ <label for="delete_user_comment">Comment</label>
110
+ <textarea name="delete_user_comment" id="delete_user_comment">Default comment.</textarea> <br />
111
+ <input type="submit" name="delete_user_submit" id="delete_user_submit" value="Delete" style="border: 4px solid red;" />
112
+ </fieldset>
113
+ </form>
114
+
115
+ <!-- testing popup windows -->
116
+ <input type="button" name="new_popup_window" value="Open window" id="new_popup_window" onclick="window.open('tables.html')">
117
+
118
+ <!-- used for testing javascript events and styles -->
119
+ <div id="changed_language" style="visibility: hidden;">
120
+ <div id="hidden_parent"></div>
121
+ </div>
122
+ <div id="wants_newsletter" style="display: none;"></div>
123
+ <div id="onfocus_test"></div>
124
+
125
+ </body>
126
+ </html>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Frame 1</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ </head>
7
+ <body>
8
+ <h1>Frame 1</h1>
9
+ <p>Nam accumsan. Donec nisi pede, interdum eget, ultrices ac, vulputate vitae, nunc. Nulla lorem. Duis cursus pharetra dolor. Nulla accumsan hendrerit leo. Vivamus commodo. Nullam dignissim adipiscing est. Aliquam vitae orci in risus lobortis luctus. Ut luctus fermentum ligula. Nullam ipsum. Suspendisse sit amet nisi.</p>
10
+ <form action="" method="post" name="senderForm">
11
+ <fieldset>
12
+ <input type="text" name="senderElement" value="send_this_value" />
13
+ <input type="button" id="send" onclick="parent.frame2.document.recieverForm.recieverElement.value = document.senderForm.senderElement.value" value="Send!" />
14
+ </fieldset>
15
+ </form>
16
+ <div id="set_by_js" />
17
+ </body>
18
+ </html>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Frame 2</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ </head>
7
+ <body>
8
+ <h1>Frame 2</h1>
9
+ <p>Vestibulum dignissim mauris id tellus. Nulla volutpat bibendum ante. Nam malesuada, lacus vel ultrices luctus, lorem purus tristique magna, quis pharetra leo ipsum nec neque. Cras ornare tincidunt sem. In hac habitasse platea dictumst. Suspendisse commodo turpis at est. Sed quis tortor. Aenean non massa. Phasellus scelerisque nulla vel lectus. Quisque lorem. Praesent volutpat dignissim risus. Fusce vulputate ligula eu ipsum.</p>
10
+ <form action="" method="post" name="recieverForm">
11
+ <fieldset>
12
+ <input type="text" name="recieverElement" value="old_value" />
13
+ </fieldset>
14
+ </form>
15
+ </body>
16
+ </html>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Frames</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ </head>
7
+ <frameset cols="50%, 50%">
8
+ <frame src="frame_1.html" id="frame_1" name="frame1" class="half" />
9
+ <frame src="frame_2.html" id="frame_2" name="frame2" class="half" />
10
+ </frameset>
11
+ </html>
@@ -0,0 +1,12 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Iframes</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ </head>
7
+ <body>
8
+ <h1>Iframes</h1>
9
+ <iframe src="frame_1.html" id="frame_1" name="frame1" class="iframe"></iframe>
10
+ <iframe src="frame_2.html" id="frame_2" name="frame2" class="iframe"></iframe>
11
+ </body>
12
+ </html>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <title>Images</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ </head>
7
+ <body>
8
+ <div>
9
+ <img />
10
+ <img src="images/1.gif" alt="1" title="The number one!" />
11
+ <img src="images/2.gif" alt="2" />
12
+ <img src="images/3.gif" alt="3" />
13
+ <img src="images/circle.jpg" name="circle" alt="circle" title="Circle" />
14
+ <img src="images/square.jpg" name="square" alt="square" id="square" title="Square" />
15
+ <img src="images/triangle.jpg" id="triangle" usemap="#triangle_map" />
16
+ <img src="images/no_such_file.jpg" id="no_such_file" />
17
+ <img src="images/1.gif" alt="1" id="non_self_closing"></img>
18
+ <map id ="triangle_map" name="triangle_map">
19
+ <area id="NCE" name="NCE" shape ="rect" coords ="40,0,70,25" href ="non_control_elements.html" alt="Non-control elements" title="Non-control elements" />
20
+ <area id="tables" name="tables" shape ="rect" coords ="0,80,20,98" href ="tables.html" alt="Tables" title="Tables" />
21
+ </map>
22
+ <map>
23
+ <area></area>
24
+ </map>
25
+ </div>
26
+ </body>
27
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=iso-2022-jp" />
6
+ <title>
7
+ ISO-2022-JP
8
+ </title>
9
+ </head>
10
+ <body>
11
+ <p>
12
+ $BK\F|$O@2E7$J$j!#(B
13
+ </p>
14
+ <input type="text" id="charset" value="">
15
+ <input type="text" id="$BK\F|$O@2E7$J$j!#(B" value="">
16
+ </body>
17
+ </html>
@@ -0,0 +1,16 @@
1
+ var WatirSpec = function() {
2
+
3
+ return {
4
+ addMessage: function(string) {
5
+ var text = document.createTextNode(string)
6
+ var message = document.createElement('div');
7
+ var messages = document.getElementById('messages');
8
+
9
+ message.appendChild(text)
10
+ messages.appendChild(message);
11
+ }
12
+ };
13
+
14
+
15
+ }(); // WatirSpec
16
+
@@ -0,0 +1,28 @@
1
+ <html>
2
+ <head>
3
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
+ <title>jquery test</title>
5
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
6
+ <script type="text/javascript" charset="utf-8">
7
+ (function ($) {
8
+ function init(){
9
+ $(".editLink").click(function(event){
10
+ var scriptTag = "<scri" + "pt> function update() { return 0; } </s" + "cript>";
11
+ $('#script').replaceWith(scriptTag);
12
+ $('#content').append(typeof(update));
13
+ event.preventDefault();
14
+ return false;
15
+ });
16
+ }
17
+
18
+ $(document).ready(init);
19
+ })(jQuery);
20
+ </script>
21
+ </head>
22
+ <body id="jquery" onload="">
23
+ <div id="script"></div>
24
+
25
+ <a href="http://www.google.com" class="editLink">add function</a>
26
+ <div id="content">typeof update: </div>
27
+ </body>
28
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml">
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
6
+ <title>
7
+ ISO-8859-1
8
+ </title>
9
+ </head>
10
+ <body>
11
+ <p>
12
+ ���
13
+ </p>
14
+ <input type="text" id="charset" value="">
15
+ <input type="text" id="���" value="">
16
+ </body>
17
+ </html>