Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object required error received after object was set
#1
Not Solved
My web interface contains a table of objects retrieved at runtime. I need to obtain the innertext property of one of the cells (WebElement) in the table. I have attempted many variations on the following method:
Code:
Set obj_FromDt = obj_Table.ChildItem(2, 2, "WebElement", 0)
    FromDt = obj_FromDt.GetROProperty("innertext")

I am able to successfully set the object, but when the debugger hits the second line I receive an object required error. The variable watch list in the debugger indicates the object was successfully set.

The following method also allows the object to be set, but fails (with the same object required error) on the second step:
Code:
Set objTest = Browser("BrowserName").Page("PageName").WebTable("table_Results").ChildItem(2, 2, "WebElement", 0)
    tst = objTest.GetROProperty("innertext")
Where am I going wrong here? Thanks for any help!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  General Object Error(Find Object Error) akhandesh 1 3,696 02-24-2016, 01:05 PM
Last Post: sindhus
  If Object name is completely changing then I am unable to recognize that object swapna.9n9 0 2,163 11-14-2014, 05:35 PM
Last Post: swapna.9n9
  Clicking on Window object to make it a javaedit object indranilgoswamimcb 0 2,190 11-03-2013, 09:03 PM
Last Post: indranilgoswamimcb
  Script required to run any app as administrator kalyan_srirangam 0 2,664 09-02-2013, 08:18 PM
Last Post: kalyan_srirangam
  QTP hangs when adding object to the object repository sathya2kn 1 3,509 12-31-2012, 03:33 PM
Last Post: krr

Forum Jump:


Users browsing this thread: 1 Guest(s)