Thanks to all of you. In fact, the issue is not so hard. I can't cope with the problem just because, I didn't tell from the 'cell' and 'table', I misunderstood that, the 'cell' can be replaced by 'table' all the time.
Both the two method below can work: ie.cell(:id,/td0/).click ie.element_by_xpath("//td[contains(@onclick,'workoutNum')]/").click Thanks. Wesley Chen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---