Get table row count in watir -


how table row count in watir.

i tried row_count function gives error.

table = $browser.table(:id,"student_list") table.row_count() 

this gives following error.

nomethoderror: undefined method `row_count' < #watir::table:0x000000034ee2f8

use line

puts $browser.table(:id,"student_list").rows.count 

or

puts $browser.table(:id,"student_list").rows.length 

Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -