ruby - watir-webdriver checking table size rows and columns count -


i starting process of converting watir scripts use watir webdriver. there couple of table methods using in watir scripts check size (rows , columns) of html table.

mytable.row_count mytable.column_count 

these methods don't exist in webdriver looking way of doing same check.

for rows seems give same result row_count method

mytable.rows.length 

for column count of table i've tried converting table array of strings , getting length of first row, conversion string array taking while.

mycols = mytable.strings[0].length 

can suggest better/ quicker method of getting table size?

assuming first row has correct number of cells:

 table.row.cells.length 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -