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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -