| || |
I have a doubt in Robot with respect to Html Table.
I am working on Rational Robot and version is 2002.05.20.
Is there any SQABasic command in Robot in order to retrieve a value from
a Htmltable which is displayed on the HTML page.(i.e., 2nd row and 5th column)
If u know, please reply.
There is no specific command for this in Robot.
One can use the IE DHTML Document Object Model (DOM) for this. The following code will display the contents of the 2nd row-5th column of the table whose HTML ID is "MyTableID" contained in the "E:\TableTest.htm" page.
Dim mybrowser as object
Dim mybrowserdoc As Object
Dim mytables As Object
Dim mytable As Object
Set mybrowser = CreateObject("InternetExplorer.Application")
mybrowser.Visible = True
Set mybrowserdoc = mybrowser.Document
Set mytables = mybrowserdoc.getElementsByTagName("Table")
Set mytable = mytables.Item("MyTableID")
[This message has been edited by sachinus (edited 12-30-2002).]