About Me

My photo
I Love Bugs! Yum! Yum!

Wednesday, January 19, 2011

Selenium: To get table length

Wednesday, September 2, 2009

To get table length

1. table.row.length
2. if the table doesn't have name, take the xpath route
a. get the xpath for the table [eg., id('batch-action-form')/table/tbody/tr]
b. use storeXpathCount for the table's xpath
storeXpathCount | id('batch-action-form')/table/tbody/tr | rowcnt

No comments:

Post a Comment