Thanks for the suggestions but unfortunately the trash can doesn't have a unique alt attribute it's just "Delete Asset". There is a unique id though which it gets from the asset that has been created. For instance when i mouse over the asset link i will have something like http://IP/assets/sub_viewasset.php?d=283&t=asset. the trash can next to the asset knows which asset to delete by passing that id to a javascipt as <IMG onclick=rusure(283) alt="Delete Asset" src="/mypath/images/del.gif" border=0></TD>
If I can pick that id from the asset that would solve what I'm trying to do. thanks Roy. --- amol deshpande <[EMAIL PROTECTED]> wrote: > Hi roy, > I hope that is a table in which you are having your > asset and delete icon. > Case 1 : > if each trash can has an unique alt attribute use > that. > ie.button(:alt,"asd").click > Note :it is a image button. > Case 2: > access the table by id,reach the row by index and do > the click. > table = ie.table(:id,"asd") > rowcount = table.row_count > ie.table[rowcount][1].link(:id,"fdf").click. > > hope this helps > Amol > > --- Roy Sin <[EMAIL PROTECTED]> wrote: > > > I have a list of assets on a list page, basically > > one asset > > per row. And if the asset can be deleted, a trash > > can will > > be visible at the beginning of that row. It's not > > like a > > button where I can look for the attribute name. I > > can > > search for the asset name but how do I instruct the > > script > > to click the trash can next to that asset name? > > below is the property of that image. > > <IMG onclick=rusure(84) alt="Delete Asset" > > src="/mypath/images/del.gif" border=0></TD> > > > > thanks > > Roy > > > > > > > > > > __________________________________ > > Yahoo! Mail - PC Magazine Editors' Choice 2005 > > http://mail.yahoo.com > > _______________________________________________ > > Wtr-general mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > No Body Has ever Collided With The Sky...So Sky Is The > Limit! > > > > __________________________________ > Yahoo! Music Unlimited > Access over 1 million songs. Try it free. > http://music.yahoo.com/unlimited/ > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/ _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
