Hi Dhanasekar
Thanks for simplifying the browser closing code; even this code works
on both IE & Firefox. I tried to execute the same logic on Google Chrome
browser, QTP is identifying Google Chrome browser as windows object.
Enclosing sample code, I guess most of our QTP scripts will not work when
we try executing on Google Chrome browser. This is again going to be
challenging task for us, if our applications try to supporting Google Chrome
browser, then we need to think on modifying scripts. I would like to share
this information with you all. Keep up the good work... All the best...
Window("Google Chrome").Activate
Window("Google Chrome").WinObject("Google").Click 373,50
Window("Google Chrome").WinObject("Google").Click 532,57
Window("Google Chrome").WinObject("Google").Click 588,51
Thanks & Regards
Srinivas P
On Mon, Sep 8, 2008 at 5:16 AM, Manjula Reddy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Once you record any list of actions on any browser, then you can find the
> CreationTime property in Object Repository
>
> Thanks,
> Manjula
>
> On Mon, Sep 1, 2008 at 8:07 AM, Ashwini Khanna <[EMAIL PROTECTED]>wrote:
>
>>
>> Hey Dmitry,
>>
>> I found this code on your blog-site to close all browsers.
>>
>> ----------------------------------------------------------------
>>
>> While Browser("CreationTime:=0").Exist
>> Browser("CreationTime:=0").Close
>> Wend
>> ----------------------------------------------------------------
>>
>> This code works well and closes all instances of IE. But what question
>> arises in my mind is - when I SPY on IE Browser I can't see any property
>> called "CreationTime"; so how does it work?
>>
>> Regards,
>> Ashwini
>>
>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "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
-~----------~----~----~----~------~----~------~--~---