Forum Discussion

jaggu_009's avatar
jaggu_009
Occasional Contributor
12 years ago

Object required: 'Browsers'

hi,

am unable to run this line. i am getting browser object required error. can any one help?



Ex: Browsers.Item("iexplorer").Run "http://smartbear.com/products"

8 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Pasumarthi,


    In TestComplete 8.0, use the following approach:



    Sys.Process("iexplore").ToURL "http://smartbear.com/products"


    Does it work?

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi,


    if  the browser is already opened then it is working fine


    You are absolutely right. This method lets you navigate the running instance of Internet Explorer to the specified web page. If you need to launch the browser automatically, add it to the Tested Applications collection and then use the code from your previous post.

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Pasumarthi,


    There is an unnecessary letter ("r") at the end of the browser name. Try using the following code:




    Browsers.Item("iexplore").Run "http://smartbear.com/products"


    Does it work?

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi,


    Please clarify a few things:


    1. Which version of TestComplete are you using?

    The fact is that the described approach was introduced in TestComplete 9 and doesn't work in TestComplete's previous versions.


    2. Which edition of TestComplete are you using (Enterprise or Standard)?


    Thanks.

  • jaggu_009's avatar
    jaggu_009
    Occasional Contributor
    hi,



    Thanks for the information. actually we are using test complete 8.0 version.
  • jaggu_009's avatar
    jaggu_009
    Occasional Contributor
    hi Lukina,



    Sys.Process("iexplore").ToURL "http://smartbear.com/products" is also not working.... is there any idea.. ?

    i am trying sys.process("iexplore",2).page("http://.....") but it is also not working...



    Thanks

    Jagadeesh
  • jaggu_009's avatar
    jaggu_009
    Occasional Contributor
    hi lukina,



    if  the browser is already opened then it is working fine, but till now am asking how to launch browse through test complete.



    Call TestedApps.iexplore.Run(1, True) 
    is working fine for launching application.



    any way thank you so much for suggesting me how to enter URL in Address bar.



    Thanks

    Jagadeesh