[Wtr-general] Newbie problem with submitting a login
Attebery, Bill
Bill.Attebery at twtelecom.com
Tue Aug 29 09:04:05 EDT 2006
Sounds like you found a solution -- but I think the event, not what is
called on the event, is the necessary argument for fire_event, or at
least that's my understanding and how I've used it. So in your case
fire_event('onClick'). Just FYI.
________________________________
From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Reinier Mostert
Sent: Tuesday, August 29, 2006 4:02 AM
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] Newbie problem with submitting a
login
Thanks Zeljko,
The fire_event did not work, I get the error:
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2039:in
`method_missing': fireEvent (WIN
32OLERuntimeError)
OLE error code:80070057 in htmlfile
Invalid argument.
HRESULT error code:0x80020009
Exception occurred. from
c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:203
9:in `fire_event'
However, I changed it to click(), and that worked - I'm in!
So it seems I should just ignore the DIV element? I tried to
build a path through it, i.e.
ie.div(:index, 1).table(:index, 4)[1].fire_event('mymiLogin')
Thanks for the help
reinier
________________________________
From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Zeljko Filipin
Sent: Tuesday, August 29, 2006 10:52 AM
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] Newbie problem with submitting a
login
It seems to me that if you want to log in, you have to fire
javascript event mymiLogin() that is located here
<tr align="center" onclick="mymiLogin()"
onmouseover="this.style.cursor='default'">
In your snippet you can do it like this:
ie.table(:index, 4)[1].fire_event('mymiLogin')
Zeljko !DSPAM:15,44f4017099191804284693!
The content contained in this electronic message is not intended to
constitute formation of a contract binding TWTC. TWTC will be
contractually bound only upon execution, by an authorized officer, of
a contract including agreed terms and conditions or by express
application of its tariffs.
This message is intended only for the use of the individual or entity
to which it is addressed. If the reader of this message is not the
intended recipient, or the employee or agent responsible for
delivering the message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the sender of this E-Mail or by telephone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060829/24fe28ab/attachment.html
More information about the Wtr-general
mailing list