Forum Discussion

i404's avatar
i404
Contributor
14 years ago

"ToURL" method or property of the "Page("*")" object that does not exist.

Hi guys,



I'm have just installed TestComplete and playing with the samples provided. I ran TestComplete 8 Samples\Web Testing\Firefox & IE sample and they both gave me the same error:

You are trying to call the "ToURL" method or property of the "Page("*")" object that does not exist.



This is the part that's involved:

  Set firefox = Aliases.firefox

  Call Log.PopLogFolder()

  URL = "http://www.automatedqa.com/examples/testcomplete/weborders/"

  If (Not firefox.WaitPage("*", 20000).Exists) Then

    Call Sys.Keys("[Esc]")

  End If

  Call firefox.WaitPage("*", 2000).ToURL(URL)

  Set page = Aliases.firefox.page

  Call Login(page, "Tester", "test")

  Call AddNewOrder(page) 



Is there anything I need to modify to get the sample run?



Hope someone can guide me through this.



Thanks



Regards

Ian

  • Hi Ian,

    Generally, you do not need to modify anything in the sample, except for the browser path.

    It seems that the Web Testing Plug-In or another required plug-in is disabled, or not available. The Web and RIA Testing functionality is only available in TestComplete Enterprise. Please open the Extensions dialog (File | Install Extension) and ensure that Web Testing, Firefox Support and Web Checkpoints plug-ins are listed and enabled. 





    Regards.
  • i404's avatar
    i404
    Contributor
    Hi Artem,



    I have checked and it seems everything is installed.

    What I didnt say to the forum was that I had TestComplete installed previously, same build, but as I am writing a walk through document for my team, I has it uninstalled and reinstalled. In the previous installation, I could get that run withouth any problem. However, it is failing on ToURL every time I run the script now.



    Has anyone experience this before?



    Hope you can help.



    Regards

    Ian
  • i404's avatar
    i404
    Contributor
    Hi Guys,



    I have just uninstalled it and install 870_Beta1 build and ran the sample again, it seems to have gone passed ToURL now (both IE & FF). However, it launch IE and can navigate to the URL now but it failed on entering Username. On the other hand, FF still suffer from the same symptom.



    I wonder what have I done wrong?



    Regards

    Lee





     


  • i404's avatar
    i404
    Contributor
    Update:



    I think something must have changed in the OS environment because I have it installed in another box (same OS) and it just ran those sample and all passed.



    Cheers

    Ian

  • Hi Ian,



    Please contact us directly and send information on your system as it is specified in the Technical Support and Resources help topic (the Attach system information to my support request and Attach system information to my support request options). In your request, please specify which exactly versions of Internet Explorer and Firefox you have on the problematic machine.