Forum Discussion
Are you sure that the object you want is actually available at that time?
Try this part of your code again except use the known values instead of the variables or properties. See if you can get it to come up that way first.
var GetValue2 = page.NativeWebObject.Find("Name",PropValue,"td");
var intPass = aqObject.GetPropertyValue(GetValue2, "contentText"); // the test fail here, no object return
Log.Message(intPass);
- sean_ng6 years agoOccasional Contributor
hi Marsha_R,
thanks for your reply.
yes, the object is available at that time.
it is actually a cell from a table and i am trying to get the value from that particuler cell in the table.
PropValue = Cell(1, 2)
var GetValue2 = page.NativeWebObject.Find("Name","Cell (1,0)","td");
var intPass = aqObject.GetPropertyValue(GetValue2, "contentText");Log.Message(intPass);
Error message that i encounter : The object "item" does not exist.
- Marsha_R6 years agoChampion Level 3
Try just these lines of code but put all the actual values in the right hand side, then post a screenshot of the results please. There's something missing and we need to see exactly what's happening.
var intPass = aqObject.GetPropertyValue(GetValue2, "contentText");
Log.Message(intPass);
- sean_ng6 years agoOccasional Contributor
Hi Marsha_R,
Thank you for your reply.
I don't know why i still can't search object using Name attibute
Instead of using Name i now change to ObjectIdentifier
var GetValue2 = page.NativeWebObject.Find("ObjectIdentifier",intValue,"td"); var intPass = aqObject.GetPropertyValue(GetValue2, "contentText"); Log.Message(intPass);
the code above work well without any problem for me.
Related Content
- 10 years ago15828555437
Recent Discussions
- 42 minutes agoSubhraDas
- 20 hours agotramuntana