Excuse me following up to myself.  Having read further down the
instructions, I've permitted active content and now get:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\hgs>cd "\Program Files\Watir\unittests"

C:\Program Files\Watir\unittests>all_tests_new.rb
Loaded suite C:/Program Files/Watir/unittests/all_tests_new
Started
......................................................Starting win setFileDialog
 in new process. Setting text file://C:/Program Files/Watir/unittests/html/fileu
pload.html
Starting app: c:/ruby/lib/ruby/site_ruby/1.8/watir/setFileDialog.rb file://C:/Pr
ogram Files/Watir/unittests/html/fileupload.html
...........-----------Objects in  page -------------
                  id=                 src=
button            name=b1             id=b2               value=Click Me      al
t=                src=
                  id=
                  id=                 value=0
                  id=                 value=0
checkbox          name=check1         id=                 value=10            al
t=                src=
checkbox          name=check1         id=                 value=20            al
t=                src=
checkbox          name=check1         id=                 value=30            al
t=                src=
radio             name=r1             id=                 value=a             al
t=                src=
radio             name=r1             id=                 value=b             al
t=                src=
radio             name=r1             id=                 value=c             al
t=                src=
radio             name=r1             id=                 value=d             al
t=                src=
text              name=               id=t1               value=              al
t=                src=
text              name=               id=t2               value=              al
t=                src=
select-one        name=s1             id=                 value=
select-multiple   name=s2             id=                 value=
submit            name=               id=                 value=Submit        al
t=                src=
reset             name=               id=reset_button     value=Reset         al
t=                src=
text              name=g1             id=                 value=textfield     al
t=                src=
button            name=g1             id=                 value=button        al
t=                src=
checkbox          name=g1             id=                 value=1             al
t=                src=
radio             name=g1             id=                 value=2             al
t=                src=
text              name=               id=g1               value=textfield_id  al
t=                src=
button            name=               id=g1               value=button_id     al
t=                src=
checkbox          name=               id=g1               value=1_id          al
t=                src=
radio             name=               id=g1               value=2_id          al
t=                src=
text              name=tt1            id=                 value=              al
t=                src=
image             name=imm            id=                 value=              al
t=submit          src=file:///C:/Program%20Files/Watir/unittests/html/images/but
ton.jpg
hidden            name=hid1           id=                 value=              al
t=                src=
hidden            name=               id=hidden_1         value=              al
t=                src=
button            name=               id=                 value=Show Hidden   al
t=                src=
text              name=vis1           id=                 value=              al
t=                src=
text              name=vis2           id=                 value=              al
t=                src=



.
<BODY>CVS Revision: "$Revision: 1.6 $" <BR><BR>
<TABLE>
<TBODY>
<TR>
<TD>
<FORM action=pass.html method=get><INPUT id=b2 type=button value="Click Me" name
=b1> </FORM>
<TD>
<TR>
<TD>
<FORM name=test2 action=pass2.html method=get>
<UL>
<LI>ListItem1
<LI><SPAN>ListItem2</SPAN> </LI></UL><BR><INPUT type=checkbox value=10 name=chec
k1> <BR><INPUT type=checkbox value=20 name=check1> <BR><INPUT type=checkbox valu
e=30 name=check1> <BR><INPUT type=radio value=a name=r1 selected> <BR><INPUT typ
e=radio value=b name=r1> <BR><INPUT type=radio value=c name=r1> <BR><INPUT type=
radio value=d name=r1> <BR><INPUT id=t1> <BR><INPUT id=t2> <BR><SELECT name=s1>
<OPTION selected>1</OPTION> <OPTION>2</OPTION></SELECT> <BR><SELECT multiple nam
e=s2 visible="3"> <OPTION>1</OPTION> <OPTION>2</OPTION> <OPTION>3</OPTION> <OPTI
ON>4</OPTION> <OPTION>5</OPTION> <OPTION>6</OPTION></SELECT> <BR><INPUT type=sub
mit value=Submit><INPUT id=reset_button type=reset value=Reset> </FORM>
<TD>
<TR bgColor=blue>
<TD><INPUT value=textfield name=g1> <BR><INPUT type=button value=button name=g1>
 <BR><INPUT type=checkbox value=1 name=g1> <BR><INPUT type=radio value=2 name=g1
> <BR>
<TD>These objects all have the same name
<TR bgColor=lightblue>
<TD><INPUT id=g1 value=textfield_id> <BR><INPUT id=g1 type=button value=button_i
d> <BR><INPUT id=g1 type=checkbox value=1_id> <BR><INPUT id=g1 type=radio value=
2_id> <BR>
<TD>These objects all have the same id
<TR>
<TD>
<FORM name=buttonsubmit action=pass.html method=get>This form is has a submit bu
tton that is an image <INPUT name=tt1> <INPUT type=image alt=submit src="images/
button.jpg" name=imm> </FORM>
<FORM name=has_a_hidden>This is in a form. The form has hidden objects. <BR>The
first has a name - hid1<INPUT type=hidden name=hid1> <BR>The second has an id- h
idden_1<INPUT id=hidden_1 type=hidden> Click This Button to see the values in th
ese boxes <INPUT onclick=javascript:showHidden(); type=button value="Show Hidden
"> <BR><INPUT name=vis1> <BR><INPUT name=vis2> </FORM></TR></TBODY></TABLE></BOD
Y>
.CVS Revision: "$Revision: 1.6 $"


ListItem1
ListItem2










 1 2
 1 2 3 4 5 6





These objects all have the same name




These objects all have the same id
This form is has a submit button that is an image
This is in a form. The form has hidden objects.
The first has a name - hid1
The second has an id- hidden_1 Click This Button to see the values in these boxe
s
.There are 4 forms
Form name:
       id:
   method: get
   action: pass.html
Form name: test2
       id:
   method: get
   action: pass2.html
Form name: buttonsubmit
       id:
   method: get
   action: pass.html
Form name: has_a_hidden
       id:
   method: get
   action:
..................F..FEE.Firing event to make button enabled
Clicking the button
..................F.Starting start rubyw c:\ruby\lib\ruby\SITE_R~1\1.8\watir\cli
ckJSDialog.rb OK 0.5
Starting start rubyw c:\ruby\lib\ruby\SITE_R~1\1.8\watir\clickJSDialog.rb Cancel
 0.5
FStarting start rubyw c:\ruby\lib\ruby\SITE_R~1\1.8\watir\clickJSDialog.rb OK 0.
5
......................................F............................F
Finished in 182.734 seconds.

  1) Failure:
test_imageHasLoaded(TC_Images) [C:/Program Files/Watir/unittests/../unittests/im
ages_test.rb:76]:
<false> is not true.

  2) Failure:
test_image_properties(TC_Images) [C:/Program Files/Watir/unittests/../unittests/
images_test.rb:104]:
<"88"> expected but was
<"30">.

  3) Error:
test_save_local_image(TC_Images):
WIN32OLERuntimeError: navigate
    OLE error code:800704C7 in <Unknown>
      <No Description>
    HRESULT error code:0x80020009
      Exception occurred.
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1253:in `method_missing'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1253:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `safe_fi
le_block'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `safe_fi
le_block'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:143:in `test_sa
ve_local_image'

  4) Error:
test_save_local_image_returns_original_page(TC_Images):
WIN32OLERuntimeError: navigate
    OLE error code:800704C7 in <Unknown>
      <No Description>
    HRESULT error code:0x80020009
      Exception occurred.
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1253:in `method_missing'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1253:in `goto'
    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2797:in `save'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `safe_fi
le_block'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `each'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:160:in `safe_fi
le_block'
    C:/Program Files/Watir/unittests/../unittests/images_test.rb:153:in `test_sa
ve_local_image_returns_original_page'

  5) Failure:
test_navigation(TC_Navigate) [C:/Program Files/Watir/unittests/../unittests/navi
gate_test.rb:19]:
<"file://c:/program%20files/watir/unittests/html/buttons1.html"> expected but wa
s
<"file://c:/program files/watir/unittests/html/buttons1.html">.

  6) Failure:
test_confirm(TC_PopUps) [C:/Program Files/Watir/unittests/../unittests/popups_te
st.rb:36]:
<false> is not true.

  7) Failure:
test_links_and_images_in_table(TC_Tables) [C:/Program Files/Watir/unittests/../u
nittests/table_test.rb:165]:
<"106"> expected but was
<"28">.

  8) Failure:
test_showLinks(TC_showlinks)
    [C:/Program Files/Watir/unittests/../unittests/links_test.rb:163:in `test_sh
owLinks'
     C:/Program Files/Watir/unittests/../unittests/links_test.rb:163:in `each_wi
th_index'
     C:/Program Files/Watir/unittests/../unittests/links_test.rb:163:in `each'
     C:/Program Files/Watir/unittests/../unittests/links_test.rb:163:in `each_wi
th_index'
     C:/Program Files/Watir/unittests/../unittests/links_test.rb:163:in `test_sh
owLinks']:
<"1                             file:///c:/program%20files/watir/unittests/html/
links2.html test1"> expected to be =~
</^1 + +file:\/\/\/c:\/program files\/watir\/unittests\/html\/links2.html *test1
$/>.

182 tests, 1036 assertions, 6 failures, 2 errors

C:\Program Files\Watir\unittests>

        HTH
        Hugh



_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to