def table(name, locator)
        #generates method for counting total no of cells in table
        define_method("#{name}_cell_count") do
          ScreenObject::AppElements::Table.new(locator).cell_count
        end
      end
def table(name, locator)
        #generates method for counting total no of cells in table
        define_method("#{name}_cell_count") do
          ScreenObject::AppElements::Table.new(locator).cell_count
        end
      end
table class generates all the methods related to different operations that can be performed on the table object on the screen.