Hi , 
i want to know the size of the table in watir web driver, kindly help me.
I'm getting this error - *undefined method `rows' for 
#<Watir::HTMLElement:0x23fce98>*

*In my Page object this is the method*

  def get_name_search(i=3)  # "#{u}"
    
@browser.element(:xpath,"//*[@id='TotalCompanyClients-CheckBoxList']/tbody/tr[#{i}]/td[2]/label")
  end

*In tests this is the method I'm calling*

table_size = @adl_invoice_billingcycle.get_name_search(i).rows.size()
    puts table_size

But its giving an error saying that undefined method rows.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to