>   
> I used AutoIt to click by coordinates  - MouseClick("left", x, y). 
> When I fire one of the events
Mmm, that strengthens my suspicion that the event handler is using the
mouse co-ordinates from the event object.

> (MyTable[1][6].fireEvent("ondblclick")), I get script error
> that complains about no cells being selected. 
> Is there a way to select table cell?

Table cells do not have an inate "selected" property, though like all
objects, they can have a "selected" property set by the script.
 
> Or may be a way to assign a value to the cell's custom properties? The cells
> have cellValue attribute, and may be I can assign a value to this attribute
> directly? 
>   
That might work, but it would depend on what attribute(s) the script
expects.  Is there any chance that you could post the event handler
script here?

[Tried to reply ealier today, but the mail seems to have got lost, so
this is a retry.]

> Anna.
> 
>  
>  
> On 9/16/05, John Lloyd-Jones <[EMAIL PROTECTED]> wrote: 
> > Anna
> > Difficult to say without seeing the event handler code, but I would guess
> that the event handler is using some information from the event that you are
> not supplying in your fireEvent call. When you say it seems to work
> "clicking cells by coordinates", how did you pass those values? In the event
> object? 
> > John
> > 
> > 
> > 
> > 
> > On 9/16/05, Anna Tuisheva < [EMAIL PROTECTED]> wrote: 
> > > 
> > > 
> > > I'm working with a page that has a table with two events - onKeyDown and
> onDblClick. When these events occur, an input text box is displayed in a
> cell that's been clicked. It's always the same input, but repositioned to a
> new cell each time. It is not visible when no cells are active: it is
> located on an invisible layer. All these objects are in a frame. 
> > > Luckily, all table cells have IDs. Watir clicks and sets focus to the
> cells, but the events are never fired up. No errors returned; the cells are
> highlighted as they are clicked, so this part works. 
> > > I need to enter values into the cells using the input that is displayed
> after clicking them (this is a table event). I tried Table[1][1].click,
> Table[1].[1].focus, Table.fireEvent, Table[1][1].fireEvent, send_keys, and
> several AutoIt tricks. I also tried various combinations of all these
> methods. The only thing that seems to work is clicking cells by coordinates.
> This is not an option at all. 
> > > Any ideas? 
> > >   
> > > Thanks, 
> > > Anna.
> > > _______________________________________________
> > > 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
> > 
> > 
> > 
>  
>  
> _______________________________________________
> 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

Reply via email to