Open GoogleCodeExporter opened 9 years ago
There is many ways to achieve it.
By using the generic function:
data = driver.findElementById("tbl1").AsTable.GetData()
Sheet1.[A1].Resize(UBound(data , 1), UBound(data, 2)).Value = data
By looping over elements:
For Each row In wd.findElementsByCssSelector("#tableid tr")
For Each cell in row.findElementsByTagName("td")
Debug.Print cell.Text
Next cell
Next row
By using some JavaScript:
data = driver.executeScript("return ...")
Original comment by florentbr
on 17 Nov 2014 at 10:07
data = driver.findElementById("tbl1").AsTable.GetData() Why this piece of code fails in IE ?? It says "object reference not set to an instance of the object"
.AsTable.GetData. --> .AsTable.Data
Original issue reported on code.google.com by
rohitkbh...@gmail.com
on 14 Nov 2014 at 12:35