Monday, June 23, 2008

Accessing tables inside table using xpath

When we have multiple tables inside tables then accessing it becomes tough. For ex. if the xpath for an element is like '/html/body/table/tbody/tr/td/table[2]/tbody/tr[5]/td[2]/table/tbody/tr/td' then we can get the element using Watir::IE.table(:index, 4)[1][1]

No comments: