I think the html code you provided is too little and not reasonable.
If you want to capture so little data on this page, you can use regular
expression.
Wesley
Man should be hard to himself, but tolerant to others.
--~--~-~--~~~---~--~~
You received this message
Hi Chintu,
If there are many tables with no name ... use the index.
var = ienw.table(:index, 1)[1][2].text
will give you the 1st row, 2nd column from the 1st table.
-Tony
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Or you could parse through all the tables
$ie.tables.each {|t|
t.each do|row|
row.each do |cell|
#DO something here ... check for some condition etc
end
end
end
This should go through all the tables present with each row and
column.
-Tony
Hi Chintu,
Data from a webpage can be captured using Watir.
It can also be captured using http, if javascript execution is not
required. (screen scrapping static web pages)
require 'watir'
ienw = Watir::IE.new()
ienw.goto(your webpage)
var = ienw.table(:name, 'name of table')[1][2].text #(use