Hi All,
I am trying to automate sending mail using gmail. I could
locate the "Compose Mail" div and make it flash using,


irb(main):100:0> ie.frame(:name, 
"main").frame(:name,"v1").span(:text,"Compose M
ail").flash

However,
the click() or fire_event("onclick") does not seem to be working.

irb(main):109:0> ie.frame(:name, 
"main").frame(:name,"v1").span(:text,"Compose M
ail").flash
=> nil
irb(main):110:0> ie.frame(:name, 
"main").frame(:name,"v1").span(:text,"Compose M
ail").fire_event("onmousedown")
=> ""
irb(main):111:0>
irb(main):111:0> ie.frame(:name, 
"main").frame(:name,"v1").span(:text,"Compose M
ail").click
=> 0.5
irb(main):112:0>

After playing a while with firebug extension on firefox and gmail, I 
could figure
out that it is sending out onmousedown event. However I noted that the 
firebug
reports that the it sends out the X-Y co-ordinates of the click as well. 
I tried
simple onmousedown event as shown above, however it did not help. I am 
not sure if
need to the X-Y co-ordinate as well, for it to work? And How is the 
question?

Any ideas?

Thanks,
Manish
P.S. : Firebug on firefox was an excellent help to understand the 
events? Is there
any equivalent for IE?
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to