here is some code I just wrote
<html><head><title>Page with VBScript</title></head><body>
<input type = text id = 'newText' value = 'I will appear below on clicking
the link'>
<br>
<script for="link1" EVENT ="onClick" Language="VBSCript">
' MsgBox "You CLicked it"
Dim d
set d= Document.all("newText")
Dim v
v = d.value
document.all("displayer").innerText=v
</script>
<input type='button' name='link1' value='Click Me to Use VBScript'>
<br>
<div id="displayer">
when you click above, this message will change
</div
</body>
</html>
I was able to access this, and it all worked correctly using
ie.button(:index,1).click
of course, that doesnt help your problem. I wonder if your vbscript does
something with the browsers event object ( like catching the keycode ) which
we havent been able to make work with watir correctly so far.
If you get really stuck, you can always try to use autoit to do it
Paul
----- Original Message -----
From: "Federico Vela" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 15, 2007 1:34 PM
Subject: Re: [Wtr-general] VBScript Fails with Watir
> 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 very much.
>
> Best regards, fedevela.
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=6554&messageID=18749#18749
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general