M
Mike
I recently installed Ruby Version 1.8.5p12 and Watir-1.4.1 on a laptop
running Windows XP Professional Version 2002 SP 2 with reasonably
current maintenance. I used gem to install Watir.
I am having problems running all_tests.rb. I installed AutoIt version
3 and registered AutoItX3.dll so I got past the first set of
problems. However the unit tests failed next because
JavascriptClick.htm couldn't be found. It was no where on my c-
drive. I looked on Fisheye and found version 910 which I copied into
notepad and saved into my Watir unit test path,
"C:\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1\unittests.html"
I get to the point where JavascriptClick.htm is being executed and a
pop-up window is displayed with text: "Press OK" and a single button
titled "OK" but then things freeze.
Any ideas how to move forward?
Here is the version of JavascriptClick that I am using:
<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>
--Thank You,
--Mike
running Windows XP Professional Version 2002 SP 2 with reasonably
current maintenance. I used gem to install Watir.
I am having problems running all_tests.rb. I installed AutoIt version
3 and registered AutoItX3.dll so I got past the first set of
problems. However the unit tests failed next because
JavascriptClick.htm couldn't be found. It was no where on my c-
drive. I looked on Fisheye and found version 910 which I copied into
notepad and saved into my Watir unit test path,
"C:\ruby\lib\ruby\gems\1.8\gems\watir-1.4.1\unittests.html"
I get to the point where JavascriptClick.htm is being executed and a
pop-up window is displayed with text: "Press OK" and a single button
titled "OK" but then things freeze.
Any ideas how to move forward?
Here is the version of JavascriptClick that I am using:
<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>
--Thank You,
--Mike