Hi Uday,
i have modified my script as per your instructions. However it still shows
that same error message : -
Browser("Welcome to
PegaRULES").Page("ARTManager").Frame("PWGadget0Ifr").WebList("none_3").CaptureBitmap
("img.png") 'performing some operation using some different obj. This is
a different DDLB object under same frame.
Browser("Welcome to
PegaRULES").Page("ARTManager").Frame("PWGadget0Ifr").WebList("none").RefreshObject
'--> Refreshing the object which is giving problem
Browser("Welcome to
PegaRULES").Page("ARTManager").Frame("PWGadget0Ifr").WebList("none").Select
"ARTManager" 'selecting weblist value
i have noticed one more thing that object spy does not recognize anything
if i expand the DDLB and click on any option.
Thanks
BNY
On Sunday, February 2, 2014 10:53:11 AM UTC+5:30, udayanem wrote:
>
> Hi Binny,
>
> I am suspecting, the page is refreshing before you perform the operation.
>
> The problem here is
> Object definition(say set obj1=some identification).
> Perform some operation using different obj. which refreshes the page.
> Now if you perform any operation like say obj1.somemethod, it will say the
> object is not identifiable/exist.
>
> To overcome this problem you have to use RefreshObject before you perform
> the method/operation, which reidentifies the object again.
> obj1.RefreshObject
> obj1.somemethod
>
> Hope it helps.
>
> Thanks,
> Uday
>
>
> On Saturday, 1 February 2014 23:13:33 UTC+5:30, BINNY wrote:
>>
>> Hi All,
>>
>> I'm trying to select value from the weblist, but QTP throws the error
>> that "cannot identify the specified item of the none object. Confirm
>> that the specified item is included in the object's item collection"
>>
>> Here is the step that recorded with weblist value as "PENDARTWB"
>>
>> Browser("Welcome to
>> PegaRULES").Page("ARTManager").Frame("PWGadget0Ifr").WebList("none").Select
>> "PENDARTWB"
>>
>> The QTP is successfully able to identify the weblist object the only
>> issue is that it is not able to select value from weblist. The strange
>> thing is happening that if i change the select option and run the script
>> from current step then QTP is able to select that option, but if i again
>> restart the script fromthe begining then it shows the same error again..
>>
>>
>> I'm attaching the screenshot for OR and weblist object properties
>>
>>
>> Thanks
>> BNY
>>
>>
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.