Forum Discussion

mazhar555's avatar
mazhar555
Contributor
15 years ago

Working with Internet Explorer 8

Hi, how can i make following function compatible for all version of Internet Explorer, this function works fine with IE6 but when i run my script with IE8 it does not work, the problem is when i launch IE 6 there is only one process of IE that is "iexplore" but when i launch IE 8 TC shows me two processes "iexplore" and "iexplore, 2".



Function LaunchURL(webUrl)

    'Closing All opened Browsers

    'CloseAllBrowser 

   

    'Initiating Internet Explorer

    Set IEObj = CreateObject("InternetExplorer.Application")

   

    ' Making IE visible

    IEObj.Visible = True

   

    ' Navigating to the page

    Call IEObj.Navigate(webUrl)

   

    'Setting Process and Page

    Set Process = Sys.Process("iexplore")

    Set Page = Process.Page("*")

   

    'Maximizing the Page

    Process.IEFrame(0).Maximize

End Function

4 Replies

  • Hi,



    I have the same problem. I have followed what you advice but it seem I cannot find 'TabProcGrowth' value under my system registry. Do any other suggesstion on how to solve the problem?



    Thanks
  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi Afina,



    As it was recommended by David (enchanced by me):

    > [...] find the TabProcGrowth value in the 

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main key (if it is not present, add a value of the string type) and set it to zero.