08-03-2015, 09:23 AM
WebList("user[country]") - This seems to be an object from the repository.
You cannot use Descriptive programming in this order.
1. If Parent object is identified by descriptive methods, the child objects also need to be identified by descriptive methods only.
2. If parent object identified by Object repository, the child objects could be descriptive.
In short, once you use descriptive technique for a statement, all the subsequent object references in it need to be descriptive.
In your case you could use
here '0' could be replaced by whatever index of the weblist you wish to interact with.
You cannot use Descriptive programming in this order.
1. If Parent object is identified by descriptive methods, the child objects also need to be identified by descriptive methods only.
2. If parent object identified by Object repository, the child objects could be descriptive.
In short, once you use descriptive technique for a statement, all the subsequent object references in it need to be descriptive.
In your case you could use
Code:
odef(0).GetItem(2)