Re: [Wtr-general] VBScript Fails with Watir

2007-02-21 Thread Federico Vela
Hi Paul, Thank you for your reply. The problem i'm facing are not the expected end of statement errors. These do not appear with Watir and my application. The problem is a VBScript error where the document.all does not support the value property. In my two examples I was able to reproduce

Re: [Wtr-general] VBScript Fails with Watir

2007-02-20 Thread Federico Vela
Could you please post your fixed html + watir? What exactly did you fix? Could this be an environmental problem? Maybe i'm using a different IE (6) or OS (W2K3) ?? Did you fix the error in both examples i posted? This is error will completely shut down any Watir use at my company, and I am

Re: [Wtr-general] VBScript Fails with Watir

2007-02-20 Thread Paul Rogers
Subject: Re: [Wtr-general] VBScript Fails with Watir Could you please post your fixed html + watir? What exactly did you fix? Could this be an environmental problem? Maybe i'm using a different IE (6) or OS (W2K3) ?? Did you fix the error in both examples i posted? This is error

Re: [Wtr-general] VBScript Fails with Watir

2007-02-19 Thread Paul Rogers
will have another go at repeating the watir issue Paul - Original Message - From: Federico Vela [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Friday, February 16, 2007 2:10 PM Subject: Re: [Wtr-general] VBScript Fails with Watir Here's another case where it fails, although

Re: [Wtr-general] VBScript Fails with Watir

2007-02-19 Thread Federico Vela
Hi Paul, just ignore it, the other error happens anyway... i have this error in over 8 pages. Thanks! - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6554messageID=18898#18898

Re: [Wtr-general] VBScript Fails with Watir

2007-02-19 Thread Paul Rogers
I fixed that and some other problems, and it all works ok for me. Seems that watir is doing the correct thing. Paul - Original Message - From: Federico Vela [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Monday, February 19, 2007 3:20 PM Subject: Re: [Wtr-general] VBScript Fails

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

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

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

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

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

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Hi Bret, Thanks so much for your reply and sorry for not posting that code initially. mainFrame.link(:url,%r{Report\.asp}).click mainFrame.button(:name,cmdGo).click mainFrame.text_field(:name,txtInitialDate).set(2/10/2006) mainFrame.link(:id,ViewReport).click #previous step should open a new

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
I've just discovered another place where the same error comes up, however this error does not disable the script like the other. (maybe because in the previous the navigation occurs with a window.open whereas here a button is clicked and the form is posted.) the vbscript code is: if

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Bret Pettichord
Federico Vela wrote: Hi Bret, Thanks so much for your reply and sorry for not posting that code initially. mainFrame.link(:url,%r{Report\.asp}).click mainFrame.button(:name,cmdGo).click mainFrame.text_field(:name,txtInitialDate).set(2/10/2006) mainFrame.link(:id,ViewReport).click

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Bret, thank you for your reply. Well yes, the error is in that IE.attach, however the cause comes from the previous line, because it did not execute a window.open vbscript command. The window.open did not get to execute because of an error when getting the value property out of a

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Hello, I'm in dire need to solve this issue, I might have to dump Watir altogether if it is not resolved soon :(( I've definetly narrowed it down to some sort of type mismatch within the vbscript engine. When i break the VBscript debugger, i cannot evaluate simple vbscript dim variables,

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
@rubyforge.org Sent: Thursday, February 15, 2007 12:53 PM Subject: Re: [Wtr-general] VBScript Fails with Watir Hello, I'm in dire need to solve this issue, I might have to dump Watir altogether if it is not resolved soon :(( I've definetly narrowed it down to some sort of type mismatch within

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Thank you for your reply and the helpful links Paul, Yes, i reckon i am one of the few, nevertheless, i must auto-test the application as it is, since we cannot afford any changes to the application other than the ones we're already making. I sure appreciate your time and patience. Thank you

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Hello, With the help of my coworkers, I've made some progress in identifying the problem. [b]It is definitely a type conversion error.[/b] I should clarify that this is an intranet web application that only supports IE, that is the reason why VBScript is acceptable. Anyway, i changed my

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
shouldnt be changing anything on the page, just accessing what is there Paul - Original Message - From: Federico Vela [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Thursday, February 15, 2007 2:08 PM Subject: Re: [Wtr-general] VBScript Fails with Watir Hello, With the help

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread John Lolis
What does the actual HTML look like for link you are clicking? Maybe there is some kind of event that needs to be fired? My gut feeling is that you are just 'clicking the wrong thing'. Again, this is just a wild guess i really have no clue whats going on in here :)

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Thank you all s much for your replies, i'll post what i'm doing in the hope that you can replicate the error, Here's my HTML div align=center A name=MaintenanceReport id=MaintenanceReport style=cursor:hand IMG height=98 src=images/j0269256.wmf style=HEIGHT: 98px; WIDTH: 180px width=153

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Federico Vela
Thank you for your reply Paul. I've doubled and tripled checked and there is not another element with the same name, txtInitialDate HOWEVER. there is a hidden input with the name txtInitialDatePost so maybe watir is matching with a regex? that would explain. Is it possible to enumerate

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
, 2007 2:39 PM Subject: Re: [Wtr-general] VBScript Fails with Watir Thank you for your reply Paul. I've doubled and tripled checked and there is not another element with the same name, txtInitialDate HOWEVER. there is a hidden input with the name txtInitialDatePost so maybe watir

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
- Original Message - From: Federico Vela [EMAIL PROTECTED] To: wtr-general@rubyforge.org Sent: Thursday, February 15, 2007 2:48 PM Subject: Re: [Wtr-general] VBScript Fails with Watir Ok some more information. I iterated through the collection, and it is only returning ONE object. Somehow

Re: [Wtr-general] VBScript Fails with Watir

2007-02-15 Thread Paul Rogers
: Thursday, February 15, 2007 5:43 PM Subject: Re: [Wtr-general] VBScript Fails with Watir its very difficult to fix until we can get a reprodicable case. I dont mind spending a bit of time tonight looking into it. It would be really helpful if you could send the minimal amount of htmll

Re: [Wtr-general] VBScript Fails with Watir

2007-02-14 Thread Bret Pettichord
Federico Vela wrote: I know document.all is not the greatest of functions but it is how the application is working currently and I do not have the option of changing the source code... any ideas??? Can you show us the watir code that triggers this error?