Forum Discussion

stega's avatar
stega
Contributor
13 years ago

Can' find the selected object

I have a list on a web page (tbody-tr-td). If i select for example the first item (Cell(1,1)), when i want to search with the nativeWebObject.Find() method, the testcomplete doesn't find it.

How can i get the selected object properties.

The way i want to do is:

1. Search the first item, and click on it.

2. Check if one of the item propery matches with a string.

3. If not, than press down, and check again (2.)

4. if matches, click a button



Thanks

2 Replies


  • Hi Gabor,


     


    What properties are you using as the search criteria? I suppose, the issue occurs due to incorrect properties.


    As for item 2, you can use a property checkpoint for this. Read the "About Property Checkpoints" article to learn how to do this.


     

  • I have a list, and i selected the first item, and when i want to search for that item (page.Find(Props, Values)), it fails, but if i select another object, the find method is able to find the first list item.

    That is the reason i want to know, is there a way to get the selected object's properties, or use a click action on it.