Hi,
The Peoblem here is as soon as the page starts loading in the middel of this
process the QTP Identifies the Object and trys to do the operation on that
object but from the application side the objects are not yet loaded due to
this the Java Script Error Accours.
And as per your point "The object does not exists" error accours when the
page is fullly loaded.
Correct me if i am wrong..!!!
Thanks,
Gopal
On Tue, Oct 14, 2008 at 12:12 PM, Mohammed Sikander <
[EMAIL PROTECTED]> wrote:
> Gopal, thanks for your reply. But i was looking for the cause of this
> error. Why QTP is giving Java Script error? while loading the application,
> it should have given just an error message saying "The object does not
> exists" if it is not able to locate the object or if it timeouts. If anyone
> come across such kind of problems please share.
>
> 2008/10/14 Gopal Tikare <[EMAIL PROTECTED]>
>
>> Ok I got your problem ! I Guess QTP is hitting the page when the page is
>> not yet loaded
>> DO one thing Use Sync and waitproperty till the page gets loaded.
>>
>> EX:
>>
>> Browser("Browser").Page("Home").WebButton("Search").WaitProperty"Visible",true,99999
>> Browser("Browser").Page("Home").Sync
>>
>> I Hope this will help U
>>
>> Thanks,
>> Gopal
>>
>> On Tue, Oct 14, 2008 at 11:17 AM, Mohammed Sikander <
>> [EMAIL PROTECTED]> wrote:
>>
>>> No, while working on the application with manually i am not getting any
>>> kind of Java Script errors. However the application is some what slow. It
>>> takes more time to load the pages.
>>>
>>> 2008/10/14 Gopal Tikare <[EMAIL PROTECTED]>
>>>
>>> Sikander,
>>>>
>>>> The Problem might be with the application not with the QTP.
>>>> Is the same problem exist while doing manually..???
>>>>
>>>> Thanks,
>>>> Gopal
>>>>
>>>> On Tue, Oct 14, 2008 at 11:05 AM, Mohammed Sikander <
>>>> [EMAIL PROTECTED]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I was automating a Web Based application. As soon as I login to the
>>>>> application, i am getting Java Script Error, due to this QTP not able to
>>>>> locate the objects in the browser. What will be the cause for this?
>>>>> I have selected all the default add-ins and i am using QTP 9.2. See the
>>>>> attachment.
>>>>>
>>>>> Thanks,
>>>>> Sikander
>>>>>
>>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---