Sha256: 7e3bd75578fad19b6b4918adf103cfc31c0790573e5f393594b316506dd81028

Contents?: true

Size: 1.12 KB

Versions: 16

Compression:

Stored size: 1.12 KB

Contents

<!doctype html>
	<head>
	<title>Alert Test</title>
	<script type="text/javascript">
	function disp_confirm()
	{
		testResult = document.getElementById('testResult');
		if (confirm("Press a button.")) 
			testResult.value = "You pressed the Confirm and OK button!";
		else
			testResult.value = "You pressed the Confirm and Cancel button!";
	}
	function disp_alert()
	{
		testResult = document.getElementById('testResult');
		alert("Press OK")
		testResult.value = "You pressed the Alert button!"
	}
	</script>

	</head>
	<body>
		<form action="get">
		<p>There are two basic methods for bringing up dialogs using javascript.</p>
		<ul>
			<li>
				alert(message) -- Display message and OK button.<br/>
				<input type="button" id="btnAlert" value="alert" OnClick="disp_alert();" />
			</li>
			<li>
				confirm(message) -- Display message and OK and Cancel buttons.<br/>
				<input type="button" id="btnConfirm" value="confirm" OnClick="disp_confirm();" />			</li>
		</ul>
		<p>Results of dialogs:</p>
		<input type="text" style="width:248px;" id="testResult" value="Test Result" />
		</form>
	</body>

</html>

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/html/JavascriptClick.html
watir-3.0.0.rc3 unittests/html/JavascriptClick.html
watir-3.0.0.rc2 unittests/html/JavascriptClick.html
watir-3.0.0.rc1 unittests/html/JavascriptClick.html
watir-2.0.4 unittests/html/JavascriptClick.html
watir-2.0.3 unittests/html/JavascriptClick.html
watir-2.0.2 unittests/html/JavascriptClick.html
watir-2.0.2.rc1 unittests/html/JavascriptClick.html
watir-2.0.1 unittests/html/JavascriptClick.html
watir-2.0.0 unittests/html/JavascriptClick.html
watir-2.0.0.rc3 unittests/html/JavascriptClick.html
watir-2.0.0.rc2 unittests/html/JavascriptClick.html
watir-1.9.2 unittests/html/JavascriptClick.html
watir-1.9.2.rc1 unittests/html/JavascriptClick.html
watir-1.9.1 unittests/html/JavascriptClick.html
watir-1.9.1.rc1 unittests/html/JavascriptClick.html