selenium-core-runner 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/Gemfile +9 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +30 -0
  5. data/app/controllers/selenium_core_runner/suites_controller.rb +19 -0
  6. data/app/views/selenium_core_runner/suites/index.html.erb +177 -0
  7. data/app/views/selenium_core_runner/suites/show.html.erb +0 -0
  8. data/config/routes.rb +6 -0
  9. data/lib/selenium-core-runner/engine.rb +19 -0
  10. data/lib/selenium-core-runner.rb +3 -0
  11. data/public/selenium-core-runner/Blank.html +7 -0
  12. data/public/selenium-core-runner/InjectedRemoteRunner.html +8 -0
  13. data/public/selenium-core-runner/RemoteRunner.html +101 -0
  14. data/public/selenium-core-runner/SeleniumLog.html +109 -0
  15. data/public/selenium-core-runner/TestPrompt.html +145 -0
  16. data/public/selenium-core-runner/TestRunner-splash.html +55 -0
  17. data/public/selenium-core-runner/TestRunner.hta +177 -0
  18. data/public/selenium-core-runner/TestRunner.html +177 -0
  19. data/public/selenium-core-runner/icons/all.png +0 -0
  20. data/public/selenium-core-runner/icons/continue.png +0 -0
  21. data/public/selenium-core-runner/icons/continue_disabled.png +0 -0
  22. data/public/selenium-core-runner/icons/pause.png +0 -0
  23. data/public/selenium-core-runner/icons/pause_disabled.png +0 -0
  24. data/public/selenium-core-runner/icons/selected.png +0 -0
  25. data/public/selenium-core-runner/icons/step.png +0 -0
  26. data/public/selenium-core-runner/icons/step_disabled.png +0 -0
  27. data/public/selenium-core-runner/iedoc-core.xml +1789 -0
  28. data/public/selenium-core-runner/iedoc.xml +1830 -0
  29. data/public/selenium-core-runner/lib/cssQuery/cssQuery-p.js +6 -0
  30. data/public/selenium-core-runner/lib/cssQuery/src/cssQuery-level2.js +142 -0
  31. data/public/selenium-core-runner/lib/cssQuery/src/cssQuery-level3.js +150 -0
  32. data/public/selenium-core-runner/lib/cssQuery/src/cssQuery-standard.js +53 -0
  33. data/public/selenium-core-runner/lib/cssQuery/src/cssQuery.js +356 -0
  34. data/public/selenium-core-runner/lib/prototype.js +2006 -0
  35. data/public/selenium-core-runner/lib/scriptaculous/builder.js +101 -0
  36. data/public/selenium-core-runner/lib/scriptaculous/controls.js +815 -0
  37. data/public/selenium-core-runner/lib/scriptaculous/dragdrop.js +915 -0
  38. data/public/selenium-core-runner/lib/scriptaculous/effects.js +958 -0
  39. data/public/selenium-core-runner/lib/scriptaculous/scriptaculous.js +47 -0
  40. data/public/selenium-core-runner/lib/scriptaculous/slider.js +283 -0
  41. data/public/selenium-core-runner/lib/scriptaculous/unittest.js +383 -0
  42. data/public/selenium-core-runner/lib/snapsie.js +91 -0
  43. data/public/selenium-core-runner/scripts/find_matching_child.js +69 -0
  44. data/public/selenium-core-runner/scripts/htmlutils.js +1623 -0
  45. data/public/selenium-core-runner/scripts/injection.html +72 -0
  46. data/public/selenium-core-runner/scripts/selenium-api.js +3240 -0
  47. data/public/selenium-core-runner/scripts/selenium-browserbot.js +2333 -0
  48. data/public/selenium-core-runner/scripts/selenium-browserdetect.js +153 -0
  49. data/public/selenium-core-runner/scripts/selenium-commandhandlers.js +379 -0
  50. data/public/selenium-core-runner/scripts/selenium-executionloop.js +175 -0
  51. data/public/selenium-core-runner/scripts/selenium-logging.js +148 -0
  52. data/public/selenium-core-runner/scripts/selenium-remoterunner.js +695 -0
  53. data/public/selenium-core-runner/scripts/selenium-testrunner.js +1362 -0
  54. data/public/selenium-core-runner/scripts/selenium-version.js +5 -0
  55. data/public/selenium-core-runner/scripts/ui-doc.html +803 -0
  56. data/public/selenium-core-runner/scripts/ui-element.js +1627 -0
  57. data/public/selenium-core-runner/scripts/ui-map-sample.js +979 -0
  58. data/public/selenium-core-runner/scripts/user-extensions.js +3 -0
  59. data/public/selenium-core-runner/scripts/user-extensions.js.sample +75 -0
  60. data/public/selenium-core-runner/scripts/xmlextras.js +153 -0
  61. data/public/selenium-core-runner/selenium-logo.png +0 -0
  62. data/public/selenium-core-runner/selenium-test.css +43 -0
  63. data/public/selenium-core-runner/selenium.css +316 -0
  64. data/public/selenium-core-runner/xpath/dom.js +566 -0
  65. data/public/selenium-core-runner/xpath/javascript-xpath-0.1.11.js +2816 -0
  66. data/public/selenium-core-runner/xpath/util.js +549 -0
  67. data/public/selenium-core-runner/xpath/xmltoken.js +149 -0
  68. data/public/selenium-core-runner/xpath/xpath.js +2481 -0
  69. metadata +121 -0
@@ -0,0 +1,145 @@
1
+ <html>
2
+ <!--
3
+ Copyright 2004 ThoughtWorks, Inc
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ -->
17
+
18
+ <head>
19
+ <meta content="text/html; charset=ISO-8859-1"
20
+ http-equiv="content-type">
21
+ <title>Select a Test Suite</title>
22
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
23
+ <script language="JavaScript" type="text/javascript" src="scripts/xmlextras.js"></script>
24
+ <script>
25
+
26
+ function load() {
27
+ if (browserVersion.isHTA) {
28
+ document.getElementById("save-div").style.display = "inline";
29
+ }
30
+ if (/thisIsSeleniumServer/.test(window.location.search)) {
31
+ document.getElementById("slowResources-div").style.display = "inline";
32
+ if (browserVersion.isHTA || browserVersion.isChrome) {
33
+ document.getElementById("test").value = "http://localhost:4444/selenium-server/tests/TestSuite.html";
34
+ }
35
+ }
36
+ }
37
+
38
+ function autoCheck() {
39
+ var auto = document.getElementById("auto");
40
+ var autoDiv = document.getElementById("auto-div");
41
+ if (auto.checked) {
42
+ autoDiv.style.display = "inline";
43
+ } else {
44
+ autoDiv.style.display = "none";
45
+ }
46
+ }
47
+
48
+ function slowCheck() {
49
+ var slowResourcesCheckbox = document.getElementById("slowResources");
50
+ var slowResources = slowResourcesCheckbox.checked ? true : false;
51
+ var xhr = XmlHttp.create();
52
+ var driverUrl = "http://localhost:4444/selenium-server/driver/?cmd=slowResources&1=" + slowResources;
53
+ xhr.open("GET", driverUrl, true);
54
+ xhr.send(null);
55
+ }
56
+
57
+ function saveCheck() {
58
+ var results = document.getElementById("results");
59
+ var check = document.getElementById("save").checked;
60
+ if (check) {
61
+ results.firstChild.nodeValue = "Results file ";
62
+ document.getElementById("resultsUrl").value = "results.html";
63
+ } else {
64
+ results.firstChild.nodeValue = "Results URL ";
65
+ document.getElementById("resultsUrl").value = "../postResults";
66
+ }
67
+ }
68
+
69
+ function go() {
70
+ if (!browserVersion.isHTA && !browserVersion.isChrome) return true;
71
+ var inputs = document.getElementsByTagName("input");
72
+ var queryString = "";
73
+ for (var i = 0; i < inputs.length; i++) {
74
+ var elem = inputs[i];
75
+ var name = elem.name;
76
+ var value = elem.value;
77
+ if (elem.type == "checkbox") {
78
+ value = elem.checked;
79
+ }
80
+ queryString += escape(name) + "=" + escape(value);
81
+ if (i < (inputs.length - 1)) {
82
+ queryString += "&";
83
+ }
84
+ }
85
+
86
+ window.parent.selenium = null;
87
+ window.parent.htmlTestRunner.controlPanel.queryString = queryString;
88
+ window.parent.htmlTestRunner.loadSuiteFrame();
89
+ return false;
90
+ }
91
+ </script>
92
+ </head>
93
+
94
+ <body onload="load()" style="font-size: x-small">
95
+ <form id="prompt" target="_top" method="GET" onsubmit="return go();" action="./index">
96
+
97
+ <p>
98
+ Test Suite:
99
+ <input id="test" name="test" size="30" value="sample"/>
100
+ </p>
101
+
102
+ <p align="center"><input type="submit" value="Go"/></p>
103
+
104
+ <fieldset>
105
+ <legend>Options</legend>
106
+
107
+ <p>
108
+ <input id="multiWindow" type="checkbox" name="multiWindow" onclick="autoCheck();"/> <label
109
+ for="multiWindow">AUT in separate window</label>
110
+
111
+ <p>
112
+
113
+ <div id="slowResources-div" style="display: none">
114
+ <p>
115
+ <input id="slowResources" type="checkbox" name="slowResources" onclick="slowCheck();" /> <label for="slowResources">Slow down web server</label>
116
+ </p>
117
+ </div>
118
+
119
+ <p>
120
+ <input id="auto" type="checkbox" name="auto" onclick="autoCheck();"/> <label for="auto">Run
121
+ automatically</label>
122
+ </p>
123
+
124
+ <div id="auto-div" style="display: none">
125
+ <p>
126
+ <input id="close" type="checkbox" name="close"/> <label for="close">Close afterwards </label>
127
+ </p>
128
+
129
+ <div id="save-div" style="display: none">
130
+ <br/><label for="save">Save to file </label><input id="save" type="checkbox" name="save"
131
+ onclick="saveCheck();"/>
132
+ </div>
133
+
134
+ <p id="results">
135
+ Results URL:
136
+ <input id="resultsUrl" name="resultsUrl" value="../postResults"/>
137
+ </p>
138
+
139
+ </div>
140
+ </fieldset>
141
+
142
+
143
+ </form>
144
+ </body>
145
+ </html>
@@ -0,0 +1,55 @@
1
+ <!--
2
+ Copyright 2005 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+
17
+ <html>
18
+ <link rel="stylesheet" type="text/css" href="selenium.css" />
19
+ <body>
20
+ <table width="100%">
21
+
22
+ <tr>
23
+ <th>&uarr;</th>
24
+ <th>&uarr;</th>
25
+ <th>&uarr;</th>
26
+ </tr>
27
+ <tr>
28
+ <th width="25%">Test Suite</th>
29
+ <th width="50%">Current Test</th>
30
+ <th width="25%">Control Panel</th>
31
+ </tr>
32
+ <tr><td>&nbsp;</td></tr>
33
+
34
+ <tr>
35
+ <td></td>
36
+ <td class="selenium splash">
37
+
38
+ <img src="selenium-logo.png" align="right">
39
+
40
+ <h1>Selenium</h1>
41
+ <h2>by <a href="http://www.thoughtworks.com">ThoughtWorks</a> and friends</h2>
42
+
43
+ <p>
44
+ For more information on Selenium, visit
45
+
46
+ <pre>
47
+ <a href="http://selenium.openqa.org" target="_blank">http://selenium.openqa.org</a>
48
+ </pre>
49
+
50
+ </td>
51
+ <tr>
52
+
53
+ </table>
54
+ </body>
55
+ </html>
@@ -0,0 +1,177 @@
1
+ <html>
2
+
3
+ <head>
4
+ <HTA:APPLICATION ID="SeleniumHTARunner" APPLICATIONNAME="Selenium">
5
+ <!-- the previous line is only relevant if you rename this
6
+ file to "TestRunner.hta" -->
7
+
8
+ <!-- The copyright notice and other comments have been moved to after the HTA declaration,
9
+ to work-around a bug in IE on Win2K whereby the HTA application doesn't function correctly -->
10
+ <!--
11
+ Copyright 2004 ThoughtWorks, Inc
12
+
13
+ Licensed under the Apache License, Version 2.0 (the "License");
14
+ you may not use this file except in compliance with the License.
15
+ You may obtain a copy of the License at
16
+
17
+ http://www.apache.org/licenses/LICENSE-2.0
18
+
19
+ Unless required by applicable law or agreed to in writing, software
20
+ distributed under the License is distributed on an "AS IS" BASIS,
21
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ See the License for the specific language governing permissions and
23
+ limitations under the License.
24
+ -->
25
+ <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
26
+
27
+ <title>Selenium Functional Test Runner</title>
28
+ <link rel="stylesheet" type="text/css" href="selenium.css"/>
29
+ <script type="text/javascript" src="scripts/xmlextras.js"></script>
30
+ <script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
31
+ <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
32
+ <script language="JavaScript" type="text/javascript" src="lib/snapsie.js"></script>
33
+ <script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
34
+ <script language="JavaScript" type="text/javascript" src="scripts/ui-element.js"></script>
35
+ <script language="JavaScript" type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
36
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
37
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
38
+ <script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
39
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-api.js"></script>
40
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-commandhandlers.js"></script>
41
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-executionloop.js"></script>
42
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-testrunner.js"></script>
43
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
44
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
45
+ <script language="JavaScript" type="text/javascript" src="xpath/util.js"></script>
46
+ <script language="JavaScript" type="text/javascript" src="xpath/xmltoken.js"></script>
47
+ <script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
48
+ <script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
49
+ <script language="JavaScript" type="text/javascript" src="xpath/javascript-xpath-0.1.11.js"></script>
50
+ <script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
51
+ <script language="JavaScript" type="text/javascript">
52
+ function openDomViewer() {
53
+ var autFrame = document.getElementById('selenium_myiframe');
54
+ var autFrameDocument = new SeleniumFrame(autFrame).getDocument();
55
+ this.rootDocument = autFrameDocument;
56
+ var domViewer = window.open(getDocumentBase(document) + 'domviewer/domviewer.html');
57
+ return false;
58
+ }
59
+ </script>
60
+ </head>
61
+
62
+ <body onLoad="onSeleniumLoad();">
63
+ <table class="layout">
64
+ <form action="" name="controlPanel">
65
+
66
+ <!-- Suite, Test, Control Panel -->
67
+
68
+ <tr class="selenium">
69
+ <td width="25%" height="30%">
70
+ <iframe name="testSuiteFrame" id="testSuiteFrame" src="./TestPrompt.html" application="yes"></iframe>
71
+ </td>
72
+ <td width="50%" height="30%">
73
+ <iframe name="testFrame" id="testFrame" application="yes" src="Blank.html"></iframe>
74
+ </td>
75
+
76
+ <td width="25%">
77
+ <table class="layout">
78
+ <tr class="selenium">
79
+ <th width="25%" height="1" class="header">
80
+ <h1><a href="http://selenium.openqa.org" title="The Selenium Project">Selenium</a> TestRunner
81
+ </h1>
82
+ </th>
83
+ </tr>
84
+ <tr>
85
+ <td width="25%" height="30%" id="controlPanel">
86
+ <fieldset>
87
+ <legend>Execute Tests</legend>
88
+
89
+ <div id="imageButtonPanel">
90
+ <button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
91
+ title="Run All tests" accesskey="a">
92
+ </button>
93
+ <button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
94
+ title="Run the Selected test" accesskey="r">
95
+ </button>
96
+ <button type="button" id="pauseTest" disabled="disabled"
97
+ title="Pause/Continue" accesskey="p" class="cssPauseTest">
98
+ </button>
99
+ <button type="button" id="stepTest" disabled="disabled"
100
+ title="Step" accesskey="s">
101
+ </button>
102
+ </div>
103
+
104
+ <div style="float:left">Fast</div>
105
+ <div style="float:right">Slow</div>
106
+ <br/>
107
+ <div id="speedSlider">
108
+ <div id="speedTrack">&nbsp;</div>
109
+ <div id="speedHandle">&nbsp;</div>
110
+ </div>
111
+
112
+ <div class="executionOptions">
113
+ <input id="highlightOption" type="checkbox" name="highlightOption" value="0"/>
114
+ <label for="highlightOption">Highlight elements</label>
115
+ </div>
116
+
117
+ </fieldset>
118
+
119
+ <table id="stats" align="center">
120
+ <tr>
121
+ <td colspan="2" align="right">Elapsed:</td>
122
+ <td id="elapsedTime" colspan="2">00.00</td>
123
+ </tr>
124
+ <tr>
125
+ <th colspan="2">Tests</th>
126
+ <th colspan="2">Commands</th>
127
+ </tr>
128
+ <tr>
129
+ <td class="count" id="testRuns">0</td>
130
+ <td>run</td>
131
+ <td class="count" id="commandPasses">0</td>
132
+ <td>passed</td>
133
+ </tr>
134
+ <tr>
135
+ <td class="count" id="testFailures">0</td>
136
+ <td>failed</td>
137
+ <td class="count" id="commandFailures">0</td>
138
+ <td>failed</td>
139
+ </tr>
140
+ <tr>
141
+ <td colspan="2"></td>
142
+ <td class="count" id="commandErrors">0</td>
143
+ <td>incomplete</td>
144
+ </tr>
145
+ </table>
146
+
147
+ <fieldset>
148
+ <legend>Tools</legend>
149
+
150
+ <button type="button" id="domViewer1" onClick="openDomViewer();">
151
+ View DOM
152
+ </button>
153
+ <button type="button" onClick="LOG.show();">
154
+ Show Log
155
+ </button>
156
+
157
+ </fieldset>
158
+
159
+ </td>
160
+ </tr>
161
+ </table>
162
+ </td>
163
+ </tr>
164
+
165
+ <!-- AUT -->
166
+
167
+ <tr>
168
+ <td colspan="3" height="70%">
169
+ <iframe name="selenium_myiframe" id="selenium_myiframe" src="TestRunner-splash.html"></iframe>
170
+ </td>
171
+ </tr>
172
+
173
+ </form>
174
+ </table>
175
+
176
+ </body>
177
+ </html>
@@ -0,0 +1,177 @@
1
+ <html>
2
+
3
+ <head>
4
+ <HTA:APPLICATION ID="SeleniumHTARunner" APPLICATIONNAME="Selenium">
5
+ <!-- the previous line is only relevant if you rename this
6
+ file to "TestRunner.hta" -->
7
+
8
+ <!-- The copyright notice and other comments have been moved to after the HTA declaration,
9
+ to work-around a bug in IE on Win2K whereby the HTA application doesn't function correctly -->
10
+ <!--
11
+ Copyright 2004 ThoughtWorks, Inc
12
+
13
+ Licensed under the Apache License, Version 2.0 (the "License");
14
+ you may not use this file except in compliance with the License.
15
+ You may obtain a copy of the License at
16
+
17
+ http://www.apache.org/licenses/LICENSE-2.0
18
+
19
+ Unless required by applicable law or agreed to in writing, software
20
+ distributed under the License is distributed on an "AS IS" BASIS,
21
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ See the License for the specific language governing permissions and
23
+ limitations under the License.
24
+ -->
25
+ <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
26
+
27
+ <title>Selenium Functional Test Runner</title>
28
+ <link rel="stylesheet" type="text/css" href="selenium.css"/>
29
+ <script type="text/javascript" src="scripts/xmlextras.js"></script>
30
+ <script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
31
+ <script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
32
+ <script language="JavaScript" type="text/javascript" src="lib/snapsie.js"></script>
33
+ <script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
34
+ <script language="JavaScript" type="text/javascript" src="scripts/ui-element.js"></script>
35
+ <script language="JavaScript" type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
36
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
37
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
38
+ <script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
39
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-api.js"></script>
40
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-commandhandlers.js"></script>
41
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-executionloop.js"></script>
42
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-testrunner.js"></script>
43
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
44
+ <script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
45
+ <script language="JavaScript" type="text/javascript" src="xpath/util.js"></script>
46
+ <script language="JavaScript" type="text/javascript" src="xpath/xmltoken.js"></script>
47
+ <script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
48
+ <script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
49
+ <script language="JavaScript" type="text/javascript" src="xpath/javascript-xpath-0.1.11.js"></script>
50
+ <script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
51
+ <script language="JavaScript" type="text/javascript">
52
+ function openDomViewer() {
53
+ var autFrame = document.getElementById('selenium_myiframe');
54
+ var autFrameDocument = new SeleniumFrame(autFrame).getDocument();
55
+ this.rootDocument = autFrameDocument;
56
+ var domViewer = window.open(getDocumentBase(document) + 'domviewer/domviewer.html');
57
+ return false;
58
+ }
59
+ </script>
60
+ </head>
61
+
62
+ <body onLoad="onSeleniumLoad();">
63
+ <table class="layout">
64
+ <form action="" name="controlPanel">
65
+
66
+ <!-- Suite, Test, Control Panel -->
67
+
68
+ <tr class="selenium">
69
+ <td width="25%" height="30%">
70
+ <iframe name="testSuiteFrame" id="testSuiteFrame" src="./TestPrompt.html" application="yes"></iframe>
71
+ </td>
72
+ <td width="50%" height="30%">
73
+ <iframe name="testFrame" id="testFrame" application="yes" src="Blank.html"></iframe>
74
+ </td>
75
+
76
+ <td width="25%">
77
+ <table class="layout">
78
+ <tr class="selenium">
79
+ <th width="25%" height="1" class="header">
80
+ <h1><a href="http://selenium.openqa.org" title="The Selenium Project">Selenium</a> TestRunner
81
+ </h1>
82
+ </th>
83
+ </tr>
84
+ <tr>
85
+ <td width="25%" height="30%" id="controlPanel">
86
+ <fieldset>
87
+ <legend>Execute Tests</legend>
88
+
89
+ <div id="imageButtonPanel">
90
+ <button type="button" id="runSuite" onClick="htmlTestRunner.startTestSuite();"
91
+ title="Run All tests" accesskey="a">
92
+ </button>
93
+ <button type="button" id="runSeleniumTest" onClick="htmlTestRunner.runSingleTest();"
94
+ title="Run the Selected test" accesskey="r">
95
+ </button>
96
+ <button type="button" id="pauseTest" disabled="disabled"
97
+ title="Pause/Continue" accesskey="p" class="cssPauseTest">
98
+ </button>
99
+ <button type="button" id="stepTest" disabled="disabled"
100
+ title="Step" accesskey="s">
101
+ </button>
102
+ </div>
103
+
104
+ <div style="float:left">Fast</div>
105
+ <div style="float:right">Slow</div>
106
+ <br/>
107
+ <div id="speedSlider">
108
+ <div id="speedTrack">&nbsp;</div>
109
+ <div id="speedHandle">&nbsp;</div>
110
+ </div>
111
+
112
+ <div class="executionOptions">
113
+ <input id="highlightOption" type="checkbox" name="highlightOption" value="0"/>
114
+ <label for="highlightOption">Highlight elements</label>
115
+ </div>
116
+
117
+ </fieldset>
118
+
119
+ <table id="stats" align="center">
120
+ <tr>
121
+ <td colspan="2" align="right">Elapsed:</td>
122
+ <td id="elapsedTime" colspan="2">00.00</td>
123
+ </tr>
124
+ <tr>
125
+ <th colspan="2">Tests</th>
126
+ <th colspan="2">Commands</th>
127
+ </tr>
128
+ <tr>
129
+ <td class="count" id="testRuns">0</td>
130
+ <td>run</td>
131
+ <td class="count" id="commandPasses">0</td>
132
+ <td>passed</td>
133
+ </tr>
134
+ <tr>
135
+ <td class="count" id="testFailures">0</td>
136
+ <td>failed</td>
137
+ <td class="count" id="commandFailures">0</td>
138
+ <td>failed</td>
139
+ </tr>
140
+ <tr>
141
+ <td colspan="2"></td>
142
+ <td class="count" id="commandErrors">0</td>
143
+ <td>incomplete</td>
144
+ </tr>
145
+ </table>
146
+
147
+ <fieldset>
148
+ <legend>Tools</legend>
149
+
150
+ <button type="button" id="domViewer1" onClick="openDomViewer();">
151
+ View DOM
152
+ </button>
153
+ <button type="button" onClick="LOG.show();">
154
+ Show Log
155
+ </button>
156
+
157
+ </fieldset>
158
+
159
+ </td>
160
+ </tr>
161
+ </table>
162
+ </td>
163
+ </tr>
164
+
165
+ <!-- AUT -->
166
+
167
+ <tr>
168
+ <td colspan="3" height="70%">
169
+ <iframe name="selenium_myiframe" id="selenium_myiframe" src="TestRunner-splash.html"></iframe>
170
+ </td>
171
+ </tr>
172
+
173
+ </form>
174
+ </table>
175
+
176
+ </body>
177
+ </html>