i have a web table and i am creating object by DP like below:
After that i am clicking on column header and the page refreshes.
When i try to access the table object(oTable) here i am getting error saying "Unspecified error".
How to overcome this error?
I am using QTP 10 on Win XP
QTP / UFT Videos from my Youtube Channel
QTP / UFT Videos from my Blog
Try using ChildObjects, hope the reference doesn't cahnge after page refresh!!
set oTableObj = Description.Create
oTableObj("micClass").value = "WebTable"
oTableObj("name").value = "Name of Table"
set oTableObject = B().P().ChildObjects(oTableObj)
Winds of Change
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Is Init method documented!!
Thanks Tarun, it worked.
I did a mistake when i tried. I tried with Browser object.
Need one more help here. How do you find documented/undocumented methods for any object like above?
By keeping myself aware and connected with lot of other blogs.
Init was discovered 3-4 yrs back by some other website and they shared the same with us.
RefreshObject was there in QTP documentation. Which you should go through after every version change
but object refresh method will not work with child objects/child items