Micro Focus QTP (UFT) Forums
Internet Explorer Pop Up ISSue - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Internet Explorer Pop Up ISSue (/Thread-Internet-Explorer-Pop-Up-ISSue)



Internet Explorer Pop Up ISSue - rajrkodeep - 06-28-2012

Hi,
I was playing back script and faced issue on following statement
The statement was
Code:
Browser("").Dialog("Message from Webpage").Winbutton("Ok").Click
The recording was done on Win 7.
this did not play back successfully on my machine which has WIN XP as Operating System.
When I re Recorded this scenario QTP recorded statement as
Code:
Browser("").Dialog("Windows Internet Explorer").Winbutton("Ok").Click
Can anyone tell me the difference between these two dialogs?


RE: Internet Explorer Pop Up ISSue - supputuri - 06-28-2012

Did you tried executing the script in Win7 again?


RE: Internet Explorer Pop Up ISSue - rajrkodeep - 06-28-2012

It executes on Win 7 but does not work on Win XP.
When I record the statements generated by QTP are different i.e dialog names
Win 7 Generates ->Browser("").Dialog("Message from Webpage")
Win XP Generates->Browser("").Dialog("Windows Internet Explorer")
Any Idea why I see such difference?


RE: Internet Explorer Pop Up ISSue - supputuri - 06-28-2012

Can you quickly compare the registry files for HKEY_CURRENT_USER\Software\Mercury Interactive\Quicktest Professional\MicTest\Test Objects\ which will control the logical names for the objects and see if there are any differences between the 2 machines.


RE: Internet Explorer Pop Up ISSue - vinod123 - 06-28-2012

As you have recorded it will not work in other system but it will be possible if the object repository is exported and imported in other system instead of doing the entire process use descriptive programing in ur cause
Browser("micclass:=Browser").Dialog("text:=.*").Winbutton("text:=Ok").Click
After spying just insert the text value of the dialog in the ".*" place
ur problem is solved