|
Anna, I had something similar as you describe—in
my case dynamically add/removed buttons on a page inside a table. When add/removing
I had to reload the table object before WATIR could see and respond to the
newly added/removed object. My code was something like this: #navigate
to the page to test gotoPopUpPage() $ie.link(:text,
/Functional Area/i).click #load
the table before removing any rows table
= $ie.table(:index, 8) #get
the number of rows rowCount
= table.row_count #remove
a row from the table table[rowCount][2].button("Delete").click #reload
table to account for removal of row table
= $ie.table(:index, 8) begin #compare
row count before and after assert_not_equal(rowCount,table.row_count) rescue
=> e puts
"*FAILED*." + e.message + "\n" +
e.backtrace.join("\n") end $ie.close You might try reloading your MyTable object
before you try clicking the dynamically added objects. Hope this helps. --Mark From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anna Tuisheva Thanks for your reply, John. I used AutoIt to click by coordinates -
MouseClick("left", x, y). When I fire one of the events
(MyTable[1][6].fireEvent("ondblclick")), I get script error that
complains about no cells being selected. Is there a way to select table cell? 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? Anna. On 9/16/05, John
Lloyd-Jones <[EMAIL PROTECTED]>
wrote: Anna On 9/16/05, Anna
Tuisheva <
[EMAIL PROTECTED]> wrote:
Anna.
|
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
