watir 1.9.0 → 1.9.1.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/CHANGES +5 -1
  2. data/VERSION +1 -1
  3. data/lib/watir/element.rb +16 -13
  4. data/lib/watir/form.rb +2 -1
  5. data/lib/watir/ie-class.rb +6 -1
  6. data/lib/watir/locator.rb +1 -1
  7. data/unittests/css_selector_test.rb +1 -1
  8. data/unittests/defer_test.rb +3 -2
  9. data/unittests/filefield_test.rb +2 -1
  10. data/unittests/form_test.rb +14 -9
  11. data/unittests/form_xpath_test.rb +8 -5
  12. data/unittests/frame_test.rb +115 -115
  13. data/unittests/html/JavascriptClick.html +1 -1
  14. data/unittests/html/blankpage.html +1 -1
  15. data/unittests/html/buttons1.html +1 -1
  16. data/unittests/html/checkboxes1.html +1 -1
  17. data/unittests/html/click_no_wait.html +1 -1
  18. data/unittests/html/complex_table.html +1 -1
  19. data/unittests/html/cssTest.html +1 -1
  20. data/unittests/html/depot_store.html +1 -1
  21. data/unittests/html/div.html +1 -1
  22. data/unittests/html/div_xml.html +1 -1
  23. data/unittests/html/fileupload.html +1 -1
  24. data/unittests/html/formTest1.html +1 -1
  25. data/unittests/html/forms2.html +1 -1
  26. data/unittests/html/forms3.html +1 -1
  27. data/unittests/html/forms4.html +1 -1
  28. data/unittests/html/google_india.html +1 -1
  29. data/unittests/html/iframeTest.html +11 -7
  30. data/unittests/html/iframeTest1.html +1 -1
  31. data/unittests/html/iframeTest2.html +1 -2
  32. data/unittests/html/images1.html +1 -1
  33. data/unittests/html/javascriptevents.html +20 -22
  34. data/unittests/html/link_pass.html +1 -1
  35. data/unittests/html/links1.html +1 -1
  36. data/unittests/html/links2.html +1 -1
  37. data/unittests/html/links_multi.html +1 -1
  38. data/unittests/html/list_matters.html +1 -1
  39. data/unittests/html/lists.html +1 -1
  40. data/unittests/html/map_test.html +1 -1
  41. data/unittests/html/modal_dialog.html +1 -1
  42. data/unittests/html/modal_dialog_launcher.html +1 -1
  43. data/unittests/html/nestedFrames.html +1 -1
  44. data/unittests/html/new_browser.html +1 -1
  45. data/unittests/html/pass.html +1 -1
  46. data/unittests/html/popups1.html +1 -1
  47. data/unittests/html/pre.html +2 -1
  48. data/unittests/html/radioButtons1.html +1 -1
  49. data/unittests/html/select_tealeaf.html +1 -1
  50. data/unittests/html/selectboxes1.html +2 -2
  51. data/unittests/html/simple_table.html +1 -1
  52. data/unittests/html/simple_table_buttons.html +1 -1
  53. data/unittests/html/simple_table_columns.html +1 -1
  54. data/unittests/html/table1.html +1 -1
  55. data/unittests/html/tableCell_using_xpath.html +1 -1
  56. data/unittests/html/table_and_tablerow_to_a.html +1 -1
  57. data/unittests/html/textarea.html +1 -1
  58. data/unittests/html/textfields1.html +1 -1
  59. data/unittests/html/textsearch.html +1 -1
  60. data/unittests/html/wallofcheckboxes.html +1 -1
  61. data/unittests/html/xpath_nbsp.html +1 -1
  62. data/unittests/js_events_test.rb +26 -0
  63. data/unittests/no_wait_test.rb +2 -2
  64. data/unittests/pre_test.rb +1 -1
  65. data/unittests/selectbox_xpath_test.rb +8 -3
  66. data/unittests/table_test.rb +1 -1
  67. data/unittests/textfields_test.rb +2 -2
  68. data/unittests/textfields_xpath_test.rb +2 -2
  69. metadata +24 -18
  70. data/unittests/html/ie_9.html +0 -6
  71. data/unittests/ie9_test.rb +0 -16
  72. data/unittests/windows/js_events_test.rb +0 -41
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Alert Test</title>
4
4
  <script type="text/javascript">
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for buttons
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for buttons
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Check Boxes
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Click No Wait Tests</title>
4
4
  <script type="text/javascript">
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Tables
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Test Hidden Message</title>
4
4
 
@@ -4,7 +4,7 @@
4
4
  ! Excerpted from "Agile Web Development with Rails"
5
5
  ! We make no guarantees that this code is fit for any purpose.
6
6
  ! Visit http://www.pragmaticprogrammer.com for more book information.
7
- --><HTML><HEAD><TITLE>Pragprog Books Online Store</TITLE>
7
+ --><!doctype html><HEAD><TITLE>Pragprog Books Online Store</TITLE>
8
8
  <META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK media=all
9
9
  href="depot_store_files/scaffold.css" type=text/css rel=Stylesheet><LINK
10
10
  media=all href="depot_store_files/depot.css" type=text/css rel=Stylesheet>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
2
+ <!doctype html>
3
3
  <head>
4
4
  <title>Test page for Div</title>
5
5
 
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Test</title>
4
4
  </head>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for File Fields
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for forms
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Forms
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Forms
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
2
+ <!doctype html>
3
3
  <head>
4
4
  <title>Test page for forms</title>
5
5
  </head>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
2
  <!-- saved from url=(0024)http://www.google.co.in/ -->
3
- <HTML><HEAD><TITLE>Google</TITLE>
3
+ <!doctype html><HEAD><TITLE>Google</TITLE>
4
4
  <META http-equiv=content-type content="text/html; charset=UTF-8">
5
5
  <STYLE>BODY {
6
6
  FONT-FAMILY: arial,sans-serif
@@ -1,13 +1,17 @@
1
1
  <html>
2
2
  <body>
3
3
 
4
-
5
- <table >
4
+ <table border>
6
5
  <tr>
7
- <td>
8
- <iframe src = "iframeTest1.html" name = "senderFrame" id = sf width = "300" height = "300">
9
-
10
- <td>
11
- <iframe src = "iframeTest2.html" name = "receiverFrame" width = "300" height = "300">
6
+ <td>
7
+ <iframe src = "iframeTest1.html" name = "senderFrame" id = "sf" width = "300" height = "300">
8
+ </td>
9
+ </tr>
10
+ <td>
11
+ <iframe src = "iframeTest2.html" name = "receiverFrame" id = "rf" width = "300" height = "300">
12
+ </td>
13
+ </tr>
12
14
  </table>
15
+
16
+ </body>
13
17
  </html>
@@ -4,4 +4,4 @@
4
4
  <input type = text name = textToSend>
5
5
  <input type = button name = sendIt value = "SendIt" onClick="javascript:parent.receiverFrame.document.body.all.receiverText.value= document.body.all.textToSend.value;">
6
6
  </body>
7
- <html>
7
+ </html>
@@ -1,6 +1,5 @@
1
1
  <html>
2
2
  <body>
3
-
4
3
  <input type = text name = receiverText>
5
4
  </body>
6
- <html>
5
+ </html>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Images
@@ -1,35 +1,33 @@
1
- <HTML>
1
+ <!doctype html>
2
2
  <HEAD>
3
3
  <SCRIPT LANGUAGE="JavaScript">
4
-
5
- function enable() {
6
- frm=document.forms[0]
7
- {frm.Button1.disabled=false}
8
- }
9
-
4
+ function showMessage(msg) {
5
+ document.getElementById('event_name').innerHTML = msg;
6
+ }
10
7
  </SCRIPT>
11
8
  </HEAD>
12
9
  <BODY TEXT="000000" BGCOLOR="FFFFFF">
13
10
  <p align="center">
11
+
12
+ <div id="event_name">nothing fired</div>
13
+
14
14
  <form>
15
15
 
16
- <input type="text" name="entertext" onkeyup="javascript:enable();" ></input>
17
- <input type="button" value="Button 1" name="Button1" disabled="true" onClick="javascript:document.location='pass.html';"></input>
18
16
 
19
- </form>
20
- </p>
21
- <p>
22
- <a href="pass.html"
23
- onMouseOver="window.status='It worked'; return true">Check the Status</a>
24
- </p>
25
- <p>
26
- <a href="pass.html"
27
- onMouseOver="window.status=''; return true">Clear the Status</a>
17
+ <input type="text"
18
+ name="entertext"
19
+ onkeyup="javascript:showMessage('onkeyup');"
20
+ onmouseup="javascript:showMessage('onmouseup');"
21
+ ></input>
22
+
23
+ <select onchange="javascript:showMessage('onchange');">
24
+ <option value=o1 >Option 1
25
+ <option value=o2 >Option 2
26
+ <option value=o3 SELECTED >Option 3
27
+ <option value=o4 >Option 4
28
+ </select>
28
29
 
29
- </p>
30
+ </form>
30
31
 
31
- <p>
32
- <a href = '#' onClick= "javascript:window.open('pass.html','pop_up_test','height=100,width=50,fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); ">New Window No Status Bar</a>
33
- </p>
34
32
  </BODY>
35
33
  </HTML>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Links - 3
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Test page for Links</title>
4
4
  <link rel="stylesheet" type="text/css" href="watir_unit_tests.css"></link>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Links - 2
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Test page for Links</title>
4
4
  </head>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
- <html>
2
+ <!doctype html>
3
3
  <head>
4
4
  <title>List Matters</title>
5
5
  <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <body>
3
3
 
4
4
  <h4>An Unordered List:</h4>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for map areas
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head><title>Modal Dialog</title></head>
3
3
 
4
4
  <body>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Modal Browser Dialog Launcher</title>
4
4
  </head>
@@ -1,4 +1,4 @@
1
- <html><head><title>Nested Frames</title></head>
1
+ <!doctype html><head><title>Nested Frames</title></head>
2
2
  <frameset cols=70,30 >
3
3
 
4
4
  <frame src = iframeTest.html name = nestedFrame>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>New Browser Launcher</title>
4
4
  <script language="JavaScript" type="">
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Pass Page
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for pop ups
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>PRE tag tests</title>
4
4
  </head>
@@ -24,5 +24,6 @@ just making sure
24
24
  this is the last block and it should
25
25
  continue to work no matter what
26
26
  </pre>
27
+ <p id='3' name='3'/>
27
28
  </body>
28
29
  </html>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Radio Buttons
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
2
+ <!doctype html>
3
3
  <head>
4
4
  </head>
5
5
  <body>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for select boxes
@@ -12,7 +12,7 @@ Test page for select boxes
12
12
 
13
13
  <tr>
14
14
  <td>
15
- <select name = sel1 class='list_style'>
15
+ <select name = "sel1" class='list_style'>
16
16
  <option value=o1 >Option 1
17
17
  <option value=o2 >Option 2
18
18
  <option value=o3 SELECTED >Option 3
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Tables
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  simple table buttons
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for testing column value extraction
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Tables
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>Testing table cell using xpath.</title>
4
4
  </head>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <style type="text/css">
4
4
  table {
@@ -1,6 +1,6 @@
1
1
 
2
2
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3
- <HTML>
3
+ <!doctype html>
4
4
  <HEAD>
5
5
  <title>TextArea-MultiLine</title>
6
6
  </HEAD>
@@ -1,4 +1,4 @@
1
- <html>
1
+ <!doctype html>
2
2
  <head>
3
3
  <title>
4
4
  Test page for Text Fields
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
2
+ <!doctype html>
3
3
  <head>
4
4
  </head>
5
5
  <body>
@@ -1,4 +1,4 @@
1
- <head><title>Test</title></head>
1
+ <!doctype head><title>Test</title></head>
2
2
  <table>
3
3
  <tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required1 ></td></tr>
4
4
  <tr><td> <INPUT type=checkbox name=custom_monetary_value10:config.admin.required2 ></td></tr>