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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
@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
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
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
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
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 :)
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
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
, 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
- 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
: 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
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?
27 matches
Mail list logo