Please check in your object repository for the weblist object and make sure that there are no dynamic values are used to identify ihis object. I think there must be a value for atleast one of the properties which is dynamic in your object repository. You need to regularise this value for QTP to identify the weblist all the time regardless of this dynamic value. Hope this helps. [img]/images/graemlins/smile.gif[/img]
The list values are not static, they keep changing all the time. So how can I, Select the right Weblist.
If there are three Weblist in a page, How can I script to select the second weblist, and the name of the weblist keeps changing all the time.
The error, "Cannot find the object", Sorry about the little information give earlier
is it possible to get the unique property value for this weblist, like name or html id? atleast if this is possible, then you can go for descriptive programming. Instead of using this object directly from the object repository, you can describe the object in your code so that it will identify the same unique weblist every time when your script runs.
'the code may look like this, pls customise it according to your object:
browser("browser").page("page").frame("frame").web list("name:=value of name property","html id:=value of html id property").select "list item to be selected"
here upto frame level, you are refering to the OR, then weblist part you are describing.