TimeTrex Community Edition v16.2.0

This commit is contained in:
2022-12-13 07:10:06 +01:00
commit 472f000c1b
6810 changed files with 2636142 additions and 0 deletions

View File

@ -0,0 +1 @@
a:3:{s:85:"/home/giorgio/code/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/ExitHandler.php";a:2:{s:3:"md5";s:32:"9da156828a8b6591d6905664624e29fb";s:8:"coverage";a:9:{i:10;i:1;i:18;i:1;i:19;i:1;i:26;i:-1;i:27;i:-1;i:28;i:-1;i:29;i:-1;i:30;i:-1;i:32;i:1;}}s:83:"/home/giorgio/code/phpunit-selenium/Tests/Selenium2TestCase/Coverage/DummyClass.php";a:2:{s:3:"md5";s:32:"7c8088a34547c159e7bf27f792211bb6";s:8:"coverage";a:6:{i:3;i:1;i:6;i:1;i:7;i:-2;i:11;i:-1;i:12;i:-2;i:14;i:1;}}s:83:"/home/giorgio/code/phpunit-selenium/Tests/Selenium2TestCase/Coverage/singleFile.php";a:2:{s:3:"md5";s:32:"01983b91b1db9d6d59e48111c6b0fe5a";s:8:"coverage";a:4:{i:5;i:1;i:6;i:1;i:7;i:1;i:9;i:1;}}}

View File

@ -0,0 +1 @@
a:3:{s:85:"/home/giorgio/code/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/ExitHandler.php";a:2:{s:3:"md5";s:32:"9da156828a8b6591d6905664624e29fb";s:8:"coverage";a:9:{i:10;i:1;i:18;i:1;i:19;i:1;i:26;i:-1;i:27;i:-1;i:28;i:-1;i:29;i:-1;i:30;i:-1;i:32;i:1;}}s:83:"/home/giorgio/code/phpunit-selenium/Tests/Selenium2TestCase/Coverage/DummyClass.php";a:2:{s:3:"md5";s:32:"7c8088a34547c159e7bf27f792211bb6";s:8:"coverage";a:6:{i:3;i:1;i:6;i:1;i:7;i:-2;i:11;i:-1;i:12;i:-2;i:14;i:1;}}s:83:"/home/giorgio/code/phpunit-selenium/Tests/Selenium2TestCase/Coverage/singleFile.php";a:2:{s:3:"md5";s:32:"01983b91b1db9d6d59e48111c6b0fe5a";s:8:"coverage";a:4:{i:5;i:1;i:6;i:1;i:7;i:1;i:9;i:1;}}}

View File

@ -0,0 +1,7 @@
<html>
<head>
<title>CamelCase page</title>
</head>
<body>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -0,0 +1,46 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<h3>Test for management of check-box and radio-button inputs</h3>
<form>
<fieldset>
<legend>Base</legend>
<input type="radio" id="base-spud" name="base" value="spud" checked="yes"/> Baked Potato<br/>
<input type="radio" id="base-rice" name="base" value="rice"/> Steamed Rice<br/>
<input type="radio" id="base-tortilla" name="base" value="tortilla"/> Tortilla<br/>
</fieldset>
<fieldset>
<legend>Options</legend>
<input type="checkbox" id="option-beans" name="option" value="beans" checked="yes"/> Beans<br/>
<input type="checkbox" id="option-butter" name="option" value="butter"/> Butter<br/>
<input type="checkbox" id="option-cheese" name="option" value="cheese" checked="yes"/> Cheese<br/>
<input type="checkbox" id="option-chilli" name="option" value="chilli"/> Chilli Flakes<br/>
<input type="checkbox" id="option-onions" name="option" value="onions"/> Onions<br/>
<input type="checkbox" id="option-sourcream" name="option" value="sourcream"/> Sour Cream<br/>
</fieldset>
</form>
</body>
<html>

View File

@ -0,0 +1,35 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Click Page 1</title>
<script type="text/javascript">
function linkClicked(url) {
document.getElementById('result').innerHTML = 'link clicked';
}
</script>
</head>
<body>
<a id="link" href="javascript:linkClicked()">link</a><br>
<div id="result"></div>
<a id="linkWithEnclosedImage" href="javascript:alert('enclosedImage clicked')"><img id="enclosedImage" src="./tw.jpg"></a><br/>
<a id="linkWithJavascriptVoidHref" href="javascript:void(0);" onclick="alert('onclick')">link with void href</a><br/>
<a id="linkWithOnclickReturnsFalse" href="javascript:alert('linkWithOnclickReturnsFalse clicked')" onclick="return false;">link with onclick returns false</a><br/>
<a id="linkWithMultipleJavascriptStatements" href="javascript: alert('alert1'); alert('alert2') ; alert ('alert3')">link with multiple javascript calls</a><br/>
</body>
</html>

View File

@ -0,0 +1,30 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Click Page 1</title>
<script type="text/javascript">
</script>
</head>
<body>
<a id="link" href="./test_click_page2.html">Click here for next page</a><br>
<a id="absoluteLink" href="/tests/html/test_click_page2.html">Click here for next page via absolute link</a><br>
<a id="linkWithEnclosedImage" href="./test_click_page2.html"><img id="enclosedImage" src="./tw.jpg"></a><br/>
<a id="linkToAnchorOnThisPage" href="#link">link to other link</a><br/>
<a id="linkWithOnclickReturnsFalse" href="./test_click_page2.html" onclick="return false;">link with onclick="return false"</a><br/>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Click Page Target</title>
<script type="text/javascript">
</script>
</head>
<body>
This is a test of the click command.
<br />
<br />
Return to <a id="previousPage" href="./test_click_page1.html">test_click_page1.html</a>
</body>
</html>

View File

@ -0,0 +1,34 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<script type="text/javascript">
function confirmLeaving() {
if (confirm("You are about to go to a dummy page.")) {
document.location = "test_dummy_page.html";
}
}
</script>
<title>Test Confirm</title>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<a id="confirmAndLeave" href="javascript:confirmLeaving();">click to navigate to a new page</a>
</body>
</html>

View File

@ -0,0 +1,23 @@
<html>
<head>
<title>Test count</title>
</head>
<body>
This is a test of the count* commands.
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
<li>11</li>
</ul>
</body>
</html>

View File

@ -0,0 +1,24 @@
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<title>Delayed element</title>
<script type="text/javascript">
function createDiv() {
var my_div = null;
var newDiv = null;
newDiv = document.createElement("div");
newDiv.setAttribute("id", "delayedDiv");
newContent = document.createTextNode("Delayed div.");
newDiv.appendChild(newContent);
button = document.getElementById("createElementButton");
document.body.insertBefore(newDiv, button);
}
</script>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<h1>This is a page with slow-loading (delayed) element.</h1>
<button id="createElementButton" onclick="window.setTimeout(createDiv, 2000);">Create element</button>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Doubleclick Page</title>
<script type="text/javascript">
window.onload = function() {
var link = document.getElementById('link');
link.addEventListener('dblclick', function() {
alert('doubleclicked');
});
};
</script>
</head>
<body>
<div id="link">Doubleclick here</a>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Dummy Page</title>
<script type="text/javascript">
</script>
</head>
<body>
<span id="theSpan">This is a dummy page.</span>
</body>
</html>

View File

@ -0,0 +1,37 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<title>Testing-ground for assertEditable and friends</title>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<form>
<table>
<tr><th>Editable text-field</th><td><input name="normal_text" value="black"></td></tr>
<tr><th>Editable select</th><td><select name="normal_select"><option>black</option></select></td></tr>
<tr><th>Disabled text-field</th><td><input name="disabled_text" value="black" disabled="yup"></td></tr>
<tr><th>Disabled select</th><td><select name="disabled_select" disabled="yup"><option>black</option></select></td></tr>
<tr><th>Faked read-only input</th><td><span id="fake_input" name="fake_input" style="border: 1px solid grey">black</span></td></tr>
</table>
</form>
</html>

View File

@ -0,0 +1,12 @@
<html>
<head>
<title>Element Rect page</title>
<script type="text/javascript">
</script>
</head>
<body>
This is a test of the rect command.
<div id="rect" style="width: 50px; height: 30px"></div>;
</body>
</html>

View File

@ -0,0 +1,15 @@
<html>
<body style="padding: 0px; margin: 0px">
<div>Other div</div>
<div id="theDivId" name="theDivName" class="theDivClass">The right div</div>
<div>Other div</div>
<div id="parentElement"><span>Child span</span></div>
<table>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</html>

View File

@ -0,0 +1,31 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<title>Testing-ground for assertEditable and friends</title>
<script type="text/javascript">
function focus(inputElement) {
inputElement.focus();
}
</script>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<form>
<input name="testInput" onblur="javascript:focus(this);" />
</form>
</html>

View File

@ -0,0 +1,8 @@
<html>
<body>
<form>
<input type="text" id="enabledInput" />
<input type="text" id="disabledInput" disabled />
</form>
</body>
</html>

View File

@ -0,0 +1,128 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<script language="javascript">
<!--
/* flag to determine if event should be recorded. */
var recording = true;
var sawCtrlKeyDown = false;
/* Records an event in the events textarea */
function recordEvent(e) {
if (!recording) return;
if (!e) e = window.event; // Handle IE
var eventMessage;
if (!e) {
eventMessage = "{ No window.event is defined, which is expected that if this is a selenium-generated mouse event created by createEventObject under IE }";
}
else {
eventMessage = '{' + e.type + '(' + this.id;
if (e.keyCode) {
eventMessage += ' - ' + e.keyCode;
}
if (e.altKey) {
eventMessage += ' altKeyDown';
}
if (e.ctrlKey) {
eventMessage += ' ctrlKeyDown';
}
sawCtrlKeyDown = e.ctrlKey;
if (e.shiftKey) {
eventMessage += ' shiftKeyDown';
}
if (e.metaKey) {
eventMessage += ' metaKeyDown';
}
eventMessage += ')} ';
}
log(eventMessage);
return true;
}
/** Attach recording event handlers to the element */
function attachEventRecorders(elementId) {
var element = document.getElementById(elementId);
element.onfocus=recordEvent;
element.onchange=recordEvent;
element.onclick=recordEvent;
element.onselect=recordEvent;
element.onblur=recordEvent;
element.onmouseover=recordEvent;
element.onmousedown=recordEvent;
element.onkeydown=recordEvent;
element.onkeypress=recordEvent;
element.onkeyup=recordEvent;
}
function setupEventRecorders() {
attachEventRecorders('theTextbox');
attachEventRecorders('theCheckbox');
attachEventRecorders('theRadio1');
attachEventRecorders('theRadio2');
attachEventRecorders('theSelect');
attachEventRecorders('theButton');
attachEventRecorders('theSubmit');
attachEventRecorders('theLink');
document.theForm.onsubmit = function() {
log('{submit} ');
return false;
}
}
// This functionality is only provided for manual clickety-click assessing of events.
// Not used in automated testing
function setupFormEventRecorders(enable) {
var recorder = enable ? recordEvent : null;
var formElement = document.forms[0];
formElement.onfocus=recorder;
formElement.onchange=recorder;
formElement.onclick=recorder;
formElement.onselect=recorder;
formElement.onblur=recorder;
}
function log(message) {
document.getElementById('eventlog').value += message;
}
-->
</script>
</head>
<body id="theBody" onload="setupEventRecorders();">
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<form id="theForm" name="theForm" onsubmit="return false;">
<input name="theTextbox" id="theTextbox" type="text" value=""/>
<input name="theCheckbox" id="theCheckbox" type="checkbox"/>
<input name="theRadio" id="theRadio1" type="radio" value="radio1"/><input name="theRadio" id="theRadio2" type="radio" value="theRadio"/>
<select name="theSelect" id="theSelect"><option value="">Empty Option</option><option value="option1">First Option</option><option value="option2">Second Option</option></select>
<input name="theButton" id="theButton" type="button" value="A Button"/>
<input name="theSubmit" id="theSubmit" type="submit" value="The Submit"/>
</form>
<a id="theLink" href="javascript:alert('link clicked');">The Link</a>
<hr/>
<div>EventLog<br/>
<textarea id="eventlog" rows="15" cols="80"></textarea><br/>
Record events:<input type="checkbox" checked="checked" onclick="recording=this.checked;"/><br/>
Record form events:<input type="checkbox" onclick="setupFormEventRecorders(this.checked);"/><br/>
</div>
</body>
</html>

View File

@ -0,0 +1,7 @@
<html>
<head></head>
<body>
This page contains frames.
<iframe id="my_iframe_id" name="my_iframe_name" src="test_open.html">
</body>
</html>

View File

@ -0,0 +1,6 @@
<html>
<body>
<div id="rectangle" style="width: 200px; height: 100px">&nbsp;</div>
<div id="colored" style="background-color: #0000ff;">&nbsp;</div>
</body>
</html>

View File

@ -0,0 +1,94 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<body lang="en">
<p>this is the first element in the document</p>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<a id="id1" href="#id1" class="a1">this is the first element</a>
<!-- DO NOT DELETE THIS COMMENT: see SEL-68 -->
<a id="id2" name="name1" href="#id2" class="a2" alt="foo">this is the&nbsp;<b>second</b> <span selenium:foo="bar">element</span></a>
<a id="id3" name="name1" href="#id3" class="a3">this is the third element</a>
<a id="foo:bar" href="#id3" class="a4">this is the fourth element</a>
<a class="class1 class2 class3">this is the fifth element</a>
<a lang="en-cn-something">this is the sixth element</a>
<input type="radio" name="name2" value="yes"> <input type="radio" name="name2" value="no">
<table class="stylee">
<tr>
<th>theHeaderText</th>
<td>theCellText</td>
</tr>
</table>
<div id="linkPseudoTest"><a href="#">link pseudo test</a></div>
<div id="combinatorTest">this is the parent. <span id="firstChild">this is a child <a>and grandson</a></span>, <span>another child</span>, <span>last child<span></span></span></div>
<div id="css3test">
<a name="foobar">foobar</a>
<a name="barfoo">barfoo</a>
<a name="foozoobar">foozoobar</a>
</div>
<div id="onlyChild"><span>only child</span></div>
<span></span>
<input type="text" name="enabled" value="enabled">
<input type="text" name="disabled" value="disabled" disabled="true">
<input type="checkbox" name="checked" value="checked" checked="true">
<div id="structuralPseudo">
<span>span1</span>
<span>span2</span>
<span>span3</span>
<span>span4</span>
<div>div1</div>
<div>div2</div>
<div>div3</div>
<div>div4</div>
</div>
<div id="nested1">
<div id="nested2">
<input id="nested3a" type="button" value="nested3a">
<input id="nested3b" type="button" value="nested3b">
</div>
</div>
<div id="anotherNested">
<span>
<div id="usefulStuff">
<span>
<input value="winner"></input>
</span>
</div>
</span>
</div>
<div id="targetTest">
<span name="target">target</span>
<a href="#target">referreing URI</a>
</div>
<a id="jshref" href="javascript:doFoo('a', 'b')">javascript href with spaces</a>
<div id="buttons">
<button>left</button> <button>right</button>
</div>
</body>
</html>

View File

@ -0,0 +1,9 @@
<html>
<head>
<script>
null.inlineError;
</script>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,30 @@
<html>
<head>
<title>Mouse Buttons Test Page</title>
<style type="text/css">
#input {
width: 200px;
height: 200px;
border: 1px solid red;
}
</style>
<script type="text/javascript">
window.onload = function() {
var input = document.getElementById('input'),
check = document.getElementById('check');
input.addEventListener('mousedown', function(e) {
check.innerHTML = e.button;
});
};
</script>
</head>
<body>
<div id="input" />
<div id="check" />
</body>
</html>

View File

@ -0,0 +1,60 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Moveto Test Page</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
}
#moveto {
border: 1px black dashed;
width: 200px;
height: 200px;
}
</style>
<script type="text/javascript">
window.addEventListener('load', function load() {
window.removeEventListener('load', load, false);
init();
}, false);
function init() {
var movetoDiv = document.getElementById('moveto');
movetoDiv.addEventListener('mouseup', function(e) {
document.getElementById('up').innerHTML = e.clientX + ',' + e.clientY;
});
movetoDiv.addEventListener('mousedown', function(e) {
document.getElementById('down').innerHTML = e.clientX + ',' + e.clientY;
});
}
</script>
</head>
<body>
<div id="moveto"></div>
<div id="down"></div>
<div id="up"></div>
</body>
</html>

View File

@ -0,0 +1,38 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<h3>Test for selecting options from a Selection.</h3>
<br>
<form name="myform">
<select name="theSelect" id="theSelect" multiple="multiple">
<option value="option1" id="o1">First Option</option>
<option value="option2" id="o2" selected="true">Second Option</option>
<option value="option3" id="o3">Third Option</option>
<option value="option4" id="o4">Fourth Option</option>
<option value="option5" id="o4">Fifth Option</option>
<option value="option6" id="o6">Sixth Option</option>
<option value="" id="o7">Empty Value Option</option>
<option value="option8" id="o8"></option>
</select>
<br>
<input name="theInput">
</form>
</body>
</html>

View File

@ -0,0 +1,23 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Test open</title>
</head>
<body>
This is a test of the open command.
</body>
</html>

View File

@ -0,0 +1,39 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<title>Slow Loading Page</title>
<script type="text/javascript">
function changeSpan() {
var span = document.getElementById("theSpan");
span.innerHTML = "Changed the text";
}
function slowRefresh() {
window.setTimeout("window.location.reload(true);", 2000);
}
</script>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<a name="linktarget"></a><span id="theSpan">This is a slow-loading page.</span>
<a id="slowPage_reload" href="./test_page.slow.html">Click to reload</a>
<button id="changeSpan" onclick="changeSpan();">change span</button>
<button id="slowRefresh" onclick="slowRefresh();">slow refresh</button>
<p><a id="anchor" href="#linktarget">anchor</a></p>
</body>
</html>

View File

@ -0,0 +1,34 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<script type="text/javascript">
function confirmLeaving() {
if (prompt("Type 'yes' and click OK") == 'yes') {
document.location = "test_dummy_page.html";
}
}
</script>
<title>Test Prompt</title>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<a id="promptAndLeave" href="javascript:confirmLeaving();">click to navigate to a new page</a>
</body>
</html>

View File

@ -0,0 +1,33 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<title>Reload Page</title>
<script type="text/javascript">
</script>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
Selecting an option or changing text causes page to reload.
<a id="theLink" href="./test_page.slow.html">Click here</a>
<form action="./test_page.slow.html">
<select name="theSelect" id="theSelect" onchange="this.form.submit();"><option value="">Empty Option</option><option value="option1">First Option</option><option value="option2">Second Option</option></select>
<input name="theTextbox" id="theTextbox" onblur="this.form.submit();" value="initialValue"/>
<input type="submit" name="theSubmit" id="theSubmit" value="submit"/>
</form>
</body>
</html>

View File

@ -0,0 +1,49 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<h3>Test for selecting options from a Selection.</h3>
<br>
<form name="myform">
<select name="theSelect" id="theSelect">
<option value="option1" id="o1">First Option</option>
<option value="option2" id="o2" selected="true">Second Option</option>
<option value="option3" id="o3">Third Option</option>
<option value="option4" id="o4">Fourth Option</option>
<option value="option5" id="o4">Fifth Option</option>
<option value="option6" id="o6">Sixth Option</option>
<option value="" id="o7">Empty Value Option</option>
<option value="option8" id="o8"></option>
</select>
<br>
<input name="theInput">
<select name="secondSelect" id="secondSelect">
<option value="option1">First Option</option>
<option value="option2" selected="true">Second Option</option>
</select>
<select id="selectWithOptgroup">
<optgroup>
<option value="1">First</option>
<option value="2">Second</option>
</optgroup>
</select>
</form>
</body>
</html>

View File

@ -0,0 +1,31 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<title>Select Window Base</title>
<script type="text/javascript">
function openWindow() {
myPopupWindow = window.open('./test_select_window_popup.html', 'myPopupWindow', 'height=200,width=500,top=400,left=50');
}
</script>
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif" /><br />
<button id="popupPage" onclick="openWindow();">Click here to open a popup window</button>
<button id="popupAnonymous" onclick="javascript:window.open('./test_select_window_popup.html', 'anonymouspopup', 'height=200,width=500,top=400,left=50');">Click here to open an anonymous popup window</button>
<button id="popupBlank" onclick="javascript:window.open('./test_select_window_popup.html', '_blank', 'height=200,width=500,top=400,left=50');">Click here to open a popup window into a _blank window</button>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<script type="text/javascript">
</script>
<title>Select Window Popup</title>
</head>
<body>
<a id="closePage" href="javascript:window.close()">Click to close</a>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<script type="text/javascript">
<!--
window.onload = function(e) {
document.getElementById('q').onkeydown = function(e) {
document.getElementById('result').innerHTML = document.getElementById('q').value;
}
}
// -->
</script>
</head>
<body>
<input type="text" id="q" />
<br /><br />
<span id="result"></span>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Slow Loading Page</title>
<script type="text/javascript">
</script>
</head>
<body>
<span id="theSpan">This is a dummy page.</span>
</body>
</html>

View File

@ -0,0 +1,56 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>Special Keys Page</title>
<script type="text/javascript">
window.onload = function() {
var input = document.getElementById('input'),
check = document.getElementById('check');
input.addEventListener('keydown', function(e) {
result = e.keyCode;
if (e.altKey) {
result += ',alt';
}
if (e.ctrlKey) {
result += ',control';
}
if (e.shiftKey) {
result += ',shift';
}
// only alert if the key isn't Alt, Control or Shift
if ([16, 17, 18].indexOf(e.which) == -1) {
check.innerHTML = result;
}
return false;
});
};
</script>
</head>
<body>
<input id="input" />
<div id="check" />
</body>
</html>

View File

@ -0,0 +1,22 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<body>
<form>
<input name="theText" value=""/>
</form>
</body>
</html>

View File

@ -0,0 +1,32 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
</head>
<body>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<h3>Test for submit command</h3>
<form id="searchForm" method="GET" action="javascript:alert('form submitted')"
onsubmit="javascript:alert('onsubmit called'); return document.forms[0].elements.okayToSubmit.checked;">
search: <input name="search" type="text">
<br />
OK to submit? <input name="okayToSubmit" type="checkbox" />
<br />
<input type="submit" />
</form>
</body>
<html>

View File

@ -0,0 +1,8 @@
<html>
<head>
<title>"Test page" not found</title>
</head>
<body>
<p>Text patterns test page</p>
</body>
</html>

View File

@ -0,0 +1,36 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<body>
<h3>Test for typing values into form text fields.</h3>
<br>
<form METHOD=GET action="./test_type_page2.html">
username: <input name="username"
type="text" >
<br />
<br />
password: <input name="password"
type="password" >
<br />
<br />
<input id="submitButton"
type="submit"
value="Log in" >
</form>
</body>
<html>

View File

@ -0,0 +1,60 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<script type="text/javascript">
<!--
// This JavaScript will dump all the parameters in the URL. Useful for checking forms.
// if you are are not using a webserver.
// paramsMap is an associative array (like a Java map, Perl hash, or Python dictionary).
var paramsMap = new Array();
var query=this.location.search.substring(1);
if (query.length > 0){
var params=query.split("&");
for (var i=0 ; i<params.length ; i++){
var pos = params[i].indexOf("=");
var name = params[i].substring(0, pos);
var value = params[i].substring(pos + 1);
paramsMap[name] = value;
}
}
// -->
</script>
</head>
<body>
<h2>
<script type="text/javascript">
<!--
message = "Welcome, " + paramsMap['username'] + "!";
document.writeln(message);
// -->
</script>
</h2>
<br>
Here are the values you entered in <a href="./test_type_page1.html">test_type_page1.html</a>:
<br />
<script type="text/javascript">
<!--
document.writeln("username&nbsp;:&nbsp;" + paramsMap['username'] + "<br \/>");
document.writeln("password&nbsp;:&nbsp;" + paramsMap['password'] + "<br \/>");
// -->
</script>
</body>
<html>

View File

@ -0,0 +1,29 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<body>
<span id="theSpan">this is the span</span>
<form>
<input name="theText" value="the text value"/>
<input type="hidden" name="theHidden" value="the hidden value">
</form>
<table id="theTable">
<tr><td>a</td><td>b</td></tr>
<tr><td>c</td><td>d</td></tr>
</table>
</body>
</html>

View File

@ -0,0 +1,45 @@
<!--
Copyright 2004 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<script type="text/javascript">
function generateAnAlert() {
alert("Store Below 494 degrees K!");
}
function generateTwoAlerts() {
alert("Store Below 220 degrees C!");
alert("Store Below 429 degrees F!");
}
function generateAnAlertBeforeLeaving() {
alert("I'm Melting! I'm Melting!");
document.location = "test_dummy_page.html";
}
</script>
</head>
<body>
<button id="oneAlert" onclick="javascript:generateAnAlert();"> click to generate one alert</button>
<br>
<button id="twoAlerts" onclick="javascript:generateTwoAlerts();"> click to generate two alerts</button>
<br>
<button id="alertAndLeave" onclick="javascript:generateAnAlertBeforeLeaving();"> click to generate an alert before navigating to new page</button>
</body>
</html>

View File

@ -0,0 +1,64 @@
<html>
<!--
Copyright 2006 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<style type="text/css">
.suppressed {
display: none;
}
</style>
</head>
<body>
<!-- pardon me, need this as a test case to fool PI mode into inappropriate injection. This
won't affect the usual test: -->
<script language="JavaScript" src="../proxy_injection_meta_equiv_test.js">
</script>
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
<p id="visibleParagraph">A visible paragraph</p>
<p><i>Note: much of this page is hidden, in one way or another</i></p>
<p id="hiddenParagraph" style="visibility: hidden">A paragraph hidden using CSS visibility=hidden</p>
<p id="suppressedParagraph" style="display: none">A paragraph suppressed using CSS display=none</p>
<p style="visibility: hidden">A <b id="hiddenSubElement">sub-element</b> hidden using CSS visibility=hidden</p>
<p style="visibility: hidden">A <b id="visibleSubElement" style="visibility: visible">sub-element that is explicitly visible</b> using CSS visibility=visible</p>
<p style="display: none">A <b id="suppressedSubElement">sub-element</b> suppressed using CSS display=none</p>
<p id="jsHiddenParagraph">A paragraph hidden using CSS visibility=hidden, applied by JavaScript</p>
<p id="classSuppressedParagraph" class="suppressed">A paragraph suppressed via CSS class</p>
<p id="jsClassSuppressedParagraph">A paragraph suppressed via CSS class, applied by JavaScript</p>
<script type="text/javascript">
document.getElementById('jsHiddenParagraph').style.visibility = "hidden";
document.getElementById('jsClassSuppressedParagraph').className = "suppressed";
</script>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!--
Copyright 2011 ThoughtWorks, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
</head>
<body>
<div id="parent">
default text
</div>
<script type="text/javascript">
setTimeout("renderTestBox()", 5000);
function renderTestBox() {
document.getElementById('parent').innerHTML = '<p id="testBox">test box</p>'
}
</script>
</body>
</html>

View File

@ -0,0 +1,14 @@
<?php
if ($_FILES) {
$file = $_FILES['upload_here'];
echo "<div id=\"uploaded\">
The file name is <span id=\"name\">{$file['name']}</span>
and its size is <span id=\"size\">{$file['size']}</span>
</div>
";
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="upload_here" id="upload_here" />
<input type="submit" id="submit" value="Upload" />
</form>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>todo:createTodo</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test SeleneseDirectory integration</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>html/test_open.html</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Test open</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>