[Wtr-general] Delete link

2007-02-16 Thread Naga Harish Kanegolla
HI Could any body tell me how to use this type of links in watir??

a href=/projects/destroy/153 onclick=if (confirm('Are you sure to delete 
?')) { var f = document.createElement('form'); this.parentNode.appendChild(f); 
f.method = 'POST'; f.action = this.href; f.submit(); };return false;Delete  ,,


If i click on delete a confirm box will get in that i want to click ok  
please tell me how to do that??
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6581messageID=18779#18779
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread MadNut
Hello, how can I call fireEvent method with sepcifynig eventObj?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6583messageID=18782#18782
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] VBScript Fails with Watir

2007-02-16 Thread Federico Vela
Hi Paul, thank you for your offering, here's the html and watir with which i 
was able to reproduce the error. The thing i dont understand is why would the 
watir click wrap a single object with a collection, whereas the manual click 
does not.

lt;html
lt;head
lt;titleMy Pagelt;/title
lt;SCRIPT LANGUAGE=vbscript
lt;!--
dim intValuesPos

intValuesPos = 0


Function MaintenanceReport_onClick()
Dim strInitialDate
Dim strFinalDate

'NEXT LINE PRODUCES AN ERROR WITH WATIR
strInitialDate = document.all(txtInitialDate).value
strFinalDate = document.all(txtFinalDate).value


window.open MaintenanceReportV.asp?ID=  
CDate(strInitialDate)  FD=  CDate(strFinalDate), AdminMaintenaceReport, 
width=800, height=600, left=  (screen.width - 800)/2  , top=  
(screen.height - 600)/2  , resizable=yes, scrollbars=yes

end function
--
lt;/SCRIPT
lt;meta name=VI60_DefaultClientScript Content=VBScript
lt;meta NAME=GENERATOR Content=Microsoft Visual Studio 6.0
lt;/head
lt;body
lt;table width=100% border=0
  lt;tr
lt;td align=middle valign=top colspan=2 width=70%lt;hr 
color=#66lt;/td
lt;td align=middle width=30% bgcolor=#66lt;font color=white 
size=3 face=Verdana, ariallt;strongReportslt;/stronglt;/fontlt;/td
  lt;/tr
lt;/tablelt;meta HTTP-EQUIV=REFRESH CONTENT=1860; URL=LoginC.asp  
target=mainFrame
lt;input type=hidden name=txtProcessControl id=txtProcessControl 
value=0
lt;TABLE border=0 cellPadding=1 cellSpacing=1 width=100% bgcolor=#66 
align=center
  lt;TR bgcolor=#66 

lt;TD width=20% 
lt;P align=leftlt;font ID=idMenuTitle1 
CLASS=clsMenuTitle color=#FFIniciolt;/fontlt;/P
lt;/TD
lt;/tr
lt;/TABLE
lt;SCRIPT LANGUAGE=vbscript
lt;!--
Sub idMenuTitle1_Onclick
location.href = HomeC.asp
End Sub
--
lt;/SCRIPT
lt;Script Language=JavaScript
lt;!--
 if (document.all  window.print) {
   document.oncontextmenu = right;
 }
 function right(e) {
  return false;
 }

//--
lt;/Script
lt;table id=frmMaintenance name=frmMaintenance width=100% border=0
  lt;tr
lt;td colspan=4lt;ult;font color=#66lt;blt;font 
color=#66Reportes de 
Mantenimientonbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;lt;/fontlt;/blt;/fontlt;/ult;/td
  lt;/tr
  lt;tr
lt;td colspan=4lt;font face=Tahoma size=2 color=#66Digite 
un rango de fecha y haga clic sobre la imagen para
visualizar el reporte.lt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td colspan=4lt;font face=Tahoma size=2 
color=#66nbsp;lt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td width=25% colspan=2 rowspan=5
  lt;div align=centerlt;A name=MaintenanceReport 
id=MaintenanceReport style=cursor:handlt;IMG height=98 
src=images/j0269256.wmf style=HEIGHT: 98px; WIDTH: 180px width=153 
ALT=Haga clic para ver el reportelt;/Alt;/div
lt;/td
lt;td width=25%lt;font face=Tahoma size=2 
color=#66lt;bFecha Inicial:lt;/blt;/fontlt;/td
lt;td rowspan=5 width=25%
  lt;div align=centernbsp;lt;/div
lt;/td
  lt;/tr
  lt;tr
lt;td width=24%lt;font face=Tahoma size=2 color=#66lt;b
lt;input type=text name=txtInitialDate id=txtInitialDate 
value=2/16/2007 maxlength=10 
size=10nbsp;(mm/dd/)lt;/blt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td width=24%lt;font face=Tahoma size=2 
color=#66lt;bFecha Final:lt;/blt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td width=24%
  lt;div align=leftlt;font face=Tahoma size=2 
color=#66lt;b
lt;input type=text name=txtFinalDate id=txtFinalDate 
value=2/16/2007 maxlength=10 size=10nbsp;(mm/dd/)lt;/blt;/font
  lt;/div
lt;/td
  lt;/tr
  lt;tr
lt;td width=24%
  lt;div align=center
nbsp;
  lt;/div
lt;/td
  lt;/tr
  lt;tr
lt;td width=24%nbsp;lt;/td
  lt;/tr
  lt;tr
lt;td width=24%nbsp;lt;/td
  lt;/tr
  lt;tr
lt;td width=24% height=24nbsp;lt;/td
  lt;/tr
  lt;tr
lt;td width=20%
  lt;div align=center
nbsp;
  lt;/div
lt;/td
lt;form action=MaintenanceReportP0.asp method=post id=frmCancel 
name=frmCancel
lt;td width=20%
  lt;div align=Left
lt;input type=submit name=cmdCancel value=Cancelar
  lt;/div
lt;/td
lt;/form
lt;td width=20%lt;INPUT id=txtUpperLimit
  name=txtUpperLimit size=5 value= style=VISIBILITY: hiddenlt;/td
lt;form method=post id=frmExecute name=frmExecute
lt;td width=40%lt;INPUT id=txtQ name=txtQ size=1 style=VISIBILITY: 
hidden
lt;input type=hidden name=txtInitialDatePost 

Re: [Wtr-general] clicking on popup after selecting an item in select list

2007-02-16 Thread Federico Vela
This worked great for me, thank you vikashkumar051.

The only difference is that i hardcoded the path to my clickJSDialog since i 
was getting errors when building the path dinamically.

def jsAlert(button, waitTime = 3)
  w = WinClicker.new
  c = start ruby 
C:\\ruby\\lib\\ruby\\gems\\1.8\\gems\\watir-1.5.1.1145\\watir\\clickJSDialog.rb 
#{button} #{waitTime}
  puts Starting #{c}
  w.winsystem(c)
  w=nil
end 

THank you for this great function
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5857messageID=18797#18797
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread John Lolis
find the element that has it and try something like

ie.link(:what,ever).fire_event('even_name')

i think
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6583messageID=18794#18794
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Delete link

2007-02-16 Thread Željko Filipin

Nothing from FAQ page helped?
http://wiki.openqa.org/display/WTR/FAQ
--
Željko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] VBScript Fails with Watir

2007-02-16 Thread Paul Rogers
ok, I'll take a look sometime today. Might not be till this evening though

Paul
- Original Message - 
From: Federico Vela [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Friday, February 16, 2007 5:06 AM
Subject: Re: [Wtr-general] VBScript Fails with Watir


 Hi Paul, thank you for your offering, here's the html and watir with which 
 i was able to reproduce the error. The thing i dont understand is why 
 would the watir click wrap a single object with a collection, whereas the 
 manual click does not.

 lt;html
 lt;head
 lt;titleMy Pagelt;/title
 lt;SCRIPT LANGUAGE=vbscript
 lt;!--
 dim intValuesPos

 intValuesPos = 0


 Function MaintenanceReport_onClick()
 Dim strInitialDate
 Dim strFinalDate

 'NEXT LINE PRODUCES AN ERROR WITH WATIR
 strInitialDate = document.all(txtInitialDate).value
 strFinalDate = document.all(txtFinalDate).value


 window.open MaintenanceReportV.asp?ID=  CDate(strInitialDate)  FD= 
  CDate(strFinalDate), AdminMaintenaceReport, width=800, height=600, 
 left=  (screen.width - 800)/2  , top=  (screen.height - 600)/2  , 
 resizable=yes, scrollbars=yes

 end function
 --
 lt;/SCRIPT
 lt;meta name=VI60_DefaultClientScript Content=VBScript
 lt;meta NAME=GENERATOR Content=Microsoft Visual Studio 6.0
 lt;/head
 lt;body
 lt;table width=100% border=0
  lt;tr
lt;td align=middle valign=top colspan=2 width=70%lt;hr 
 color=#66lt;/td
lt;td align=middle width=30% bgcolor=#66lt;font 
 color=white size=3 face=Verdana, 
 ariallt;strongReportslt;/stronglt;/fontlt;/td
  lt;/tr
 lt;/tablelt;meta HTTP-EQUIV=REFRESH CONTENT=1860; URL=LoginC.asp 
 target=mainFrame
 lt;input type=hidden name=txtProcessControl id=txtProcessControl 
 value=0
 lt;TABLE border=0 cellPadding=1 cellSpacing=1 width=100% 
 bgcolor=#66 align=center
  lt;TR bgcolor=#66

lt;TD width=20%
 lt;P align=leftlt;font ID=idMenuTitle1 CLASS=clsMenuTitle 
 color=#FFIniciolt;/fontlt;/P
 lt;/TD
 lt;/tr
 lt;/TABLE
 lt;SCRIPT LANGUAGE=vbscript
 lt;!--
 Sub idMenuTitle1_Onclick
 location.href = HomeC.asp
 End Sub
 --
 lt;/SCRIPT
 lt;Script Language=JavaScript
 lt;!--
 if (document.all  window.print) {
   document.oncontextmenu = right;
 }
 function right(e) {
  return false;
 }

 //--
 lt;/Script
 lt;table id=frmMaintenance name=frmMaintenance width=100% border=0
  lt;tr
lt;td colspan=4lt;ult;font color=#66lt;blt;font 
 color=#66Reportes de 
 Mantenimientonbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;lt;/fontlt;/blt;/fontlt;/ult;/td
  lt;/tr
  lt;tr
lt;td colspan=4lt;font face=Tahoma size=2 
 color=#66Digite un rango de fecha y haga clic sobre la imagen para
visualizar el reporte.lt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td colspan=4lt;font face=Tahoma size=2 
 color=#66nbsp;lt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td width=25% colspan=2 rowspan=5
  lt;div align=centerlt;A name=MaintenanceReport 
 id=MaintenanceReport style=cursor:handlt;IMG height=98 
 src=images/j0269256.wmf style=HEIGHT: 98px; WIDTH: 180px width=153 
 ALT=Haga clic para ver el reportelt;/Alt;/div
lt;/td
lt;td width=25%lt;font face=Tahoma size=2 
 color=#66lt;bFecha Inicial:lt;/blt;/fontlt;/td
lt;td rowspan=5 width=25%
  lt;div align=centernbsp;lt;/div
lt;/td
  lt;/tr
  lt;tr
lt;td width=24%lt;font face=Tahoma size=2 
 color=#66lt;b
lt;input type=text name=txtInitialDate id=txtInitialDate 
 value=2/16/2007 maxlength=10 
 size=10nbsp;(mm/dd/)lt;/blt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td width=24%lt;font face=Tahoma size=2 
 color=#66lt;bFecha Final:lt;/blt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td width=24%
  lt;div align=leftlt;font face=Tahoma size=2 
 color=#66lt;b
lt;input type=text name=txtFinalDate id=txtFinalDate 
 value=2/16/2007 maxlength=10 
 size=10nbsp;(mm/dd/)lt;/blt;/font
  lt;/div
lt;/td
  lt;/tr
  lt;tr
lt;td width=24%
  lt;div align=center
nbsp;
  lt;/div
lt;/td
  lt;/tr
  lt;tr
lt;td width=24%nbsp;lt;/td
  lt;/tr
  lt;tr
lt;td width=24%nbsp;lt;/td
  lt;/tr
  lt;tr
lt;td width=24% height=24nbsp;lt;/td
  lt;/tr
  lt;tr
lt;td width=20%
  lt;div align=center
nbsp;
  lt;/div
lt;/td
lt;form action=MaintenanceReportP0.asp method=post id=frmCancel 
 name=frmCancel
lt;td width=20%
  lt;div align=Left
lt;input type=submit name=cmdCancel value=Cancelar
  lt;/div
lt;/td
lt;/form
lt;td width=20%lt;INPUT id=txtUpperLimit
  name=txtUpperLimit size=5 value= style=VISIBILITY: 
 

Re: [Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread Željko Filipin

http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents
--
Željko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread Paul Rogers
we havent found a way to specify the event object to go with the event Im 
afraid

Paul
- Original Message - 
From: MadNut [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Friday, February 16, 2007 4:18 AM
Subject: [Wtr-general] How to call .fireEvent(event, eventObj)?


 Hello, how can I call fireEvent method with sepcifynig eventObj?
 -
 Posted via Jive Forums
 http://forums.openqa.org/thread.jspa?threadID=6583messageID=18782#18782
 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general
 


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Watir + IE dev toolbar

2007-02-16 Thread Maisonnette
Hello,

I have find a problem. When i lunch a (big ? ~30 TestCase) testsuite in watir. 
After a few time, i have the IE 's window witch freeze ... it's stay blank !

When i disable the IE dev toolbar (complementary module), all is ok !

that's all :-)
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6590messageID=18811#18811
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Connecting to Oracle error - error: custom_require.rb:27:in `gem_original_require': no such file to load -- oci8 (LoadError).

2007-02-16 Thread Chris McMahon
 Thanks for taking the time to look at this. If you are referring to
 Ruby/OCI8 for Oracle, yes I already have that installed. Any other ideas as
 to how to get this fixed?

Clearly you *don't* have it installed, or else it's installed
improperly.   The message custom_require.rb:27:in
`gem_original_require': no such file to load -- oci8 (LoadError).
means that Ruby can't find your oci8 library.

You should probably find a list devoted to whatever OCI8 library you
attempted to install, instead of the Watir list.

-C
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] VBScript Fails with Watir

2007-02-16 Thread Bret Pettichord
My best guess is the problem is with the data.set command. Watir just 
jams the argument into the value parameter, whereas most pages have a 
bunch of validation code that runs on it first. In other words, it is 
likely that Watir is NOT running this validation code. If there is a 
problem with the format, then that could cause a problem down the line. 
So: double check the format of the date. Enter the date manually and 
then do a date.value command to see what the value looks like after 
entering it manually.

I haven not read all your code closely, so this is just a guess. (But 
thanks for sending it all.)

Bret

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread MadNut
No, I need specify eventObj! Without it fireEvent won't work. The app checks 
eventObj.button == 1 as you can see above, else it doesn't work. 
Please, read more carefuly question before you answer. Thanks

p.s. As a variant, I resolve this problem by executing that script directly via 
ExecScript() from ie window. Maybe, anybody can tell a better way.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6583messageID=18817#18817
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] OT: algorithm help?

2007-02-16 Thread Bret Pettichord
Here is a clever and elegant solution:

http://dannorth.net/2007/02/monkey-business-value

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] VBScript Fails with Watir

2007-02-16 Thread Federico Vela
Hi Bret,

This is not specific to the page, i have it happening in other pages without 
date text fields, in a form with only names, emails addresses, clicking on a 
link also causes the error.

Therefore i do not think it is directly related to the date format.

Maybe i'll post another reproducible example where this error also happens.

Thanks for your reply!!!
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6554messageID=18819#18819
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] OT: algorithm help?

2007-02-16 Thread Chris McMahon
On 2/16/07, Bret Pettichord [EMAIL PROTECTED] wrote:
 Here is a clever and elegant solution:

 http://dannorth.net/2007/02/monkey-business-value

I read this yesterday, I was kind of surprised to find it coming from
a TW developer.  This is *so* not unit-testing!
-Chris
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] DL::DLError: too many callbacks are defined

2007-02-16 Thread Dave Munns
After running a lengthy script that processes lots of modal dialogs and 
javascript alerts, I get the infamous error, DL::DLError: too many callbacks 
are defined.

I am running Ruby 1.8.5-21 and Watir 1.5.0.1100 and it has been able to handle 
modal dialogs and javascript alerts with a modification to watir.rb (added 
include Win32 stmt after line “module PageContainer”)

I reviewed 2 threads on this issue, each with their own modifications to 
winClicker.rb.

The first solution removes return statements from enum procs for getChildHandle 
and getWindowHandle.

The second solution adds DL.remove_callback to winClicker.rb methods with 
DL.callback calls.

Looking at winClicker.rb, I see the 2nd solution implemented for Watir 
1.5.0.1100. Is there a validated solution for this problem?
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6594messageID=18826#18826
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread Bret Pettichord
  p.s. As a variant, I resolve this problem by executing that script 
directly via ExecScript() from ie window. Maybe, anybody can tell a 
better way.

Could you share this with us?

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Watir and SmartClient

2007-02-16 Thread Bret Pettichord
[EMAIL PROTECTED] wrote:
 does anyone know if Watir would run on a SmartClient, that uses IE dlls?
   
It probably wouldn't be hard to reuse 95% of watir, but you would have 
to make some modifications to the IE class.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to call .fireEvent(event, eventObj)?

2007-02-16 Thread Bret Pettichord
Settle down. He's only trying to help.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Windows 2003 64-bit and IE.new_process Fails

2007-02-16 Thread Bret Pettichord
Jim Hollcraft wrote:
 IE.new_process appears to fail under windows 2003 64-bit. IE.new works fine.

 I'm pretty sure this isn't an issue with my code since the exact same code 
 works great under 32 bit versions of both windows 2003 and windows XP.

 Any suggestions?
What error are you getting?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] OT: Test unit reporter project dead?

2007-02-16 Thread Charley Baker

I've been using test unit reporter for some time. I just tried to look up
the page on Rubyforge for a friend and now I'm getting an Invalid Project
page at  http://rubyforge.org/project/test-report/ and the project site
listed in the readme for test-report. Sending a message to Alexey about it,
just curious if anyone knows anything about this? Might be a temporary fluke
on Rubyforge.

-Charley
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] VBScript Fails with Watir

2007-02-16 Thread Federico Vela
Here's another case where it fails, although this html was making an expected 
end of statement error that i was not able to be rid of (after switching from 
the asp to just html), the document.all error is also reproduced.

HTML:


lt;htmllt;head
lt;titlemy page 2lt;/title
lt;SCRIPT LANGUAGE=vbscript
lt;!--
Sub chkZeroDecimals_OnClick
frmInsert.chkTwoDecimals.status = false
End Sub

Sub chkTwoDecimals_OnClick
frmInsert.chkZeroDecimals.status = false
End Sub

Sub hplTwo_OnClick
dim intSearch
dim intInitialPosition
dim intFinalPosition
dim intAuxiliaryCount
dim strValuesP23
dim strFields
dim intDecimals

if document.all(txtIdentification).value lt;  and 
IsNumber(trim(document.all(txtIdentification).value)) = true then
if len(trim(document.all(txtIdentification).value))=8 then
document.all(txtCheckDigit).value = 
CheckDigit(document.all(txtIdentification).value)
frmFields.action = ClearingEntityP2C.asp
frmFields.submit
else
window.alert Por favor, digite una Identificación 
válida (8 dígitos).
end if
end if
End Sub


--
lt;/SCRIPT
lt;/head
lt;body
lt;table width=100% border=0
  lt;tr
lt;td align=middle valign=top colspan=2 width=68%lt;hr 
color=#66
lt;/td
lt;td align=middle width=32% bgcolor=#66lt;font 
color=white size=3 face=Verdana, ariallt;strongPage 
Titlelt;/stronglt;/fontlt;/td
  lt;/tr
lt;/tablelt;meta HTTP-EQUIV=REFRESH CONTENT=1860; URL=LoginC.asp  
target=mainFrame
lt;input type=hidden name=txtProcessControl id=txtProcessControl 
value=0
lt;TABLE border=0 cellPadding=1 cellSpacing=1 width=100% bgcolor=#66 
align=center
  lt;TR bgcolor=#66 
lt;TD width=20% 
lt;P align=leftlt;font ID=idMenuTitle1 
CLASS=clsMenuTitle color=#FFIniciolt;/fontlt;/P
lt;/TD
lt;/TR
lt;/TABLE
lt;SCRIPT LANGUAGE=vbscript
lt;!--
Sub idMenuTitle1_Onclick
location.href = HomeC.asp
End Sub
--
lt;/SCRIPT
lt;Script Language=JavaScript
lt;!--
 if (document.all  window.print) {
   document.oncontextmenu = right;
 }
 function right(e) {
  return false;
 }

//--
lt;/Script

lt;table width=100% border=0
  lt;tr style=BORDER-BOTTOM: black
lt;td colspan=6 bordercolor=#00 bgcolor=#ff
  lt;plt;ult;font color=#66lt;blt;font color=#66 
face=Tahoma
 Informacioacute;nlt;/fontlt;/blt;/fontlt;/ult;/p
lt;/td
  lt;/tr
  lt;form action=ClearingEntityI.asp method=post id=frmInsert 
name=frmInsert onSubmit=return CheckData()
  lt;tr
lt;td colspan=3lt;font size=2 face=Tahomalt;blt;font 
color=#66Identificacioacute;n:lt;/fontlt;/blt;/fontlt;/td
lt;td colspan=3 width=50%lt;font size=2 
face=Tahomalt;blt;font color=#66Digito de 
Chequeo:lt;/fontlt;/blt;/fontlt;/td
  lt;/tr
  lt;tr
lt;td colspan=3 lt;font size=2 face=Tahoma
lt;input name=txtIdentification size=8 maxlength=8   
id=txtIdentification value= onBlur=VerifyIdentification(this.value);
  lt;Script language=JavaScript
function VerifyIdentification(ValueSet){
if (ValueSet.replace(' ', '') != '')
{
if (98989898.indexOf(ValueSet)  -1){
alert(La Identification que está 
queriendo utilizar, \nestá siendo utilizada por otra Camara de 
Compensación.\nPor favor cambie la identificación.);

document.frmInsert.txtIdentification.value = '';

document.frmInsert.txtIdentification.focus();
}
}
}
  lt;/script
  lt;IMG alt = height=14 src=images/required.gif width=18 
lt;/fontlt;/td
lt;td colspan=3 width=50% lt;font size=2 face=Tahoma
  lt;input name=txtCheckDigit size=1 maxlength=1 disabled 
style=BACKGROUND-COLOR: silver
  id=txtCheckDigit value=
  lt;/fontlt;/td
  lt;/tr
  
  lt;input type=hidden name=txtDistributeInternationalTransactions 
id=txtDistributeInternationalTransactions value=0
  
  lt;input type=hidden name=txtItemLevelReject id=txtItemLevelReject 
value=0
  
  lt;tr
lt;td colspan=3lt;font size=2 face=Tahomalt;blt;font 
color=#66Nombre:lt;/fontlt;/blt;/fontlt;/td
lt;td colspan=3 width=50%lt;font size=2 
face=Tahomalt;blt;font 
color=#66Fax:lt;/fontlt;/blt;/fontlt;/td
  lt;/tr
  lt;tr
lt;script language=JavaScript
function VerifyName(ValueSet){
if (ValueSet.replace(' ', '') != '')
{
if 
(OPERADOR,.toUpperCase().indexOf(ValueSet.toUpperCase())  -1){
alert(El nombre que está queriendo 
utilizar, \nestá siendo utilizado por otra Camara de Compensación.\nPor favor 
cambie 

Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-16 Thread Bret Pettichord
Charley Baker wrote:
 I've been using test unit reporter for some time. I just tried to look 
 up the page on Rubyforge for a friend and now I'm getting an Invalid 
 Project page at  http://rubyforge.org/project/test-report/ 
 http://rubyforge.org/project/test-report/ and the project site 
 listed in the readme for test-report. Sending a message to Alexey 
 about it, just curious if anyone knows anything about this? Might be a 
 temporary fluke on Rubyforge.

I've posted a support request on rubyforge: 
http://rubyforge.org/tracker/index.php?func=detailaid=8715group_id=5atid=102

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] OT: Test unit reporter project dead?

2007-02-16 Thread Nick Sieger

On 2/16/07, Charley Baker [EMAIL PROTECTED] wrote:


I've been using test unit reporter for some time. I just tried to look up
the page on Rubyforge for a friend and now I'm getting an Invalid Project
page at  http://rubyforge.org/project/test-report/ and the project site
listed in the readme for test-report. Sending a message to Alexey about it,
just curious if anyone knows anything about this? Might be a temporary fluke
on Rubyforge.



Slightly shameless plug -- you might be interested in my CI::Reporter [1]
package that I released recently.

Cheers,
/Nick

[1] http://caldersphere.rubyforge.org/ci_reporter
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general