Jeffrey Schwab wrote

> Could you please post a complete example, including a table and some
> input text?

I have an HTML table

for example

HINCKLEY
HINDHEAD
HINTON ST GEORGE

If have a file the I read which inputs data and compares the above
result with the expected result

*********************************************** TESTID_80
Town:
HIN
Country2:
GB
Search-Results2:
3
Expected-Result:
HINCKLEY
HINDHEAD
HINTON ST GEORGE
END:

this table, I can read as a two dimesional array and flatten

here is most of the code

      when /^(Provinces|Town):$/
        task = :provinces
      when /^Search-Results:$/
        task = :search
      when /^Search-Results2:$/
        task = :search2
      when /^Country2:$/
        task = :country2
      when /^Expected-Result:$/
        task = :verify
      when /^END:$/
        task = :end
        $ie.close
    else
      case task
        when :country
          $ie.text_field(:name, 'C1').set(line)
        when :search
          $ie.text_field(:name, 'NR1').set(line)
          $ie.button(:value, 'Search').click
        when :provinces
          $ie.text_field(:name, 'T1').set(line)
        when :search2
          $ie.text_field(:name, 'NR2').set(line)
          $ie.button(:value, 'Get Towns').click
        when :country2
          $ie.text_field(:name, 'C2').set(line)
          if @filename == "provinces.txt"
            $ie.button(:value, 'Get Provinces').click
          end
        when :verify
           t = $ie.table(:index, '2').to_a.flatten
           t.each {|a|
             p "table #{a}"
             p "line #{line}"
             if /line/ =~ a; p 'match' else; p 'not match'; end
        }

The problem I have having is comparing the flattened array with what I
have in the file as an expected result 
    
Cheers
    
aidy