08-30-2013, 08:28 PM
Hi All,
I am new to QTP's webtable.I have gone through some blog on webtable and for that moment I got to know how it works but when I tried with a example I am getting so many confusions.
I created a simple html page with a table
Then i wrote fallowing code to get the webtable details:
But I am getting error saying "webtable does not present in OR"
My doubts are like
1. I am writting Descriptive Programming then why it need to store in OR.
2. and Why this error here.
I tried with other webtable properties from object spy also but not working.
Please help me on this.
I am new to QTP's webtable.I have gone through some blog on webtable and for that moment I got to know how it works but when I tried with a example I am getting so many confusions.
I created a simple html page with a table
Code:
<table border="1" name="MyWebTable">
<tr><th>Table header</th><th>Table header</th></tr>
<tr><td>Table cell 1</td><td>Table cell 2</td></tr>
<tr><td><button type="button" name="OK">Click Me!</button></td>
<td><a href="#">Table cell 4</a></td></tr>
</table>
Then i wrote fallowing code to get the webtable details:
Code:
systemutil.Run("C:\Users\Ramesh\Desktop\testing.html")
With browser("title:=Browser").page("title:=Page")
obj=browser("title:=Browser").page("title:=Page").webtable("name:=Click Me!").RowCount
msgbox obj
End With
But I am getting error saying "webtable does not present in OR"
My doubts are like
1. I am writting Descriptive Programming then why it need to store in OR.
2. and Why this error here.
I tried with other webtable properties from object spy also but not working.
Please help me on this.