Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IE6 scripts not working in IE7
#4
Solved: 11 Years, 4 Months ago
Code:
dim Browserobj, validationtxt
Set Browserobj = Description.Create()
Browser("micclass") = "Browser"
Browser("url") = "" 'Insert your url here or use Expression (ie: .*msn.*)
With Browser(Browserobj).Dialog("title:=.*")
       If .Exist(1) Then
            validationtxt = .GetVisibleText(-1,-1,-1,-1)
            Reporter.ReportEvent micDone, "Popup", validationtxt
            .WinButton("OK").Click
       End If
End with

This code is adapted from a web framework I wrote that handles popups for me. I did make the Browserobj more generic, so hopefully it will still work for you.

Hope this helps.
Reply


Messages In This Thread
IE6 scripts not working in IE7 - by bugfinder - 02-07-2011, 11:49 PM
RE: IE6 scripts not working in IE7 - by bugfinder - 02-08-2011, 10:59 PM
RE: IE6 scripts not working in IE7 - by jsknight1969 - 02-09-2011, 03:32 AM
RE: IE6 scripts not working in IE7 - by bugfinder - 02-13-2011, 09:02 PM
RE: IE6 scripts not working in IE7 - by bugfinder - 02-19-2011, 01:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MTM Scripts are not Working in UFT 11.5 nallapusalavijay 0 2,226 03-20-2014, 11:26 AM
Last Post: nallapusalavijay
  Need Excel template for mapping manual scripts to Automation scripts. ACCBAJPA 0 2,965 09-19-2013, 03:02 PM
Last Post: ACCBAJPA
  Dialog box differs on different browsers version (IE7 and IE9) for same application visitjaga 1 2,803 12-07-2012, 05:14 PM
Last Post: Ankesh
  QTP 9.2 on Vista with IE7 doesn't recognize web objects velan 2 4,008 02-03-2011, 12:35 PM
Last Post: DinakarVadapalli
  QC 9.5 does not open in IE7 pjavvaru 1 2,794 12-14-2010, 01:15 AM
Last Post: jsknight1969

Forum Jump:


Users browsing this thread: 4 Guest(s)