SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    ObjecT does not exist

    i am using the bellow simple Script
    Test Type: Webpage Testing
    Objective: Trying to login to a page and click one of the Hyperlinks -"My Team". (attached
    the Screen shot.)

    Issue: i get the error cannot find the object "aspnetForm" (Nothings been changed in the
    application)

    Solutions Attempted: i tried to used waitForm and exists to check if the application
    exists, Testcomplete does not recognise the form and logs message that "form aspneForm does not exist".

    Note: am not using name mapping


    Can you please tell me how i should make the Testcomplte find the form "aspneForm". test
    fails some times, runs at times.
    Thanks for ur Input

    Code Used.

    Sub Test24
    Dim p1
    Dim w1
    Dim w2
    Dim w3
    TestedApps.iexplore.Run
    Set p1 = Sys.Process("iexplore")
    Set w1 = p1.Page("http://localhost/connx_41/")
    Call w1.ToURL("http://localhost/connx_41/")
    Set w2 = w1.Form("aspnetForm").Table("MainTable").Cell(2,
    0).Table("ctl00_mptblMainTable").Cell(0,
    0).Panel("mpMain").Panel("band").Panel("login").Pa nel("loginbottom").Panel("ctl00_cphMainContent_log incontrols").Table(0)
    set p=p1.WaitChild("aspnetForm", 2000)
    If p.Exists Then
    Log.Message p.Name
    Else
    Log.Message "Not found"
    End If
    Call w2.Cell(0, 2).Textbox("ctl00_cphMainContent_txtUserName").Key s("1")
    Set w3 = w2.Cell(1, 1).PasswordBox("ctl00_cphMainContent_txtPassword")
    w3.Click
    Call w3.Keys("zzz")
    'Call p1.Window("tooltips_class32", "", 1).Click(5, 11)
    Call w2.Cell(2, 1).Panel(0).Click(40, 14)
    set res= w2.Findchild("Name", "Cell(0, 1)", 10000)
    if res.Exists Then
    msgbox("myteam tab found")
    Else
    msgbox("myteam tab not founfd")
    end if
    delay(5000)
    Call w1.Form("aspnetForm").Table("MainTable").Cell(1,
    0).Panel("mpumDropDownMenu").Table(0).Cell(0, 1).Table(0).Cell(0, 1).Click(28, 8)
    End Sub

  2. #2
    Senior Member
    Join Date
    May 2004
    Posts
    1,196
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ObjecT does not exist

    Hello mariajoseph,

    Please try using the FindChild method to find the form like this:

    <font class="small">Code:</font><hr /><pre>
    '...
    aqUtils.Delay(2000)
    Set p = p1.FindChild("Name", "*aspnetForm*", 10)
    If p.Exists Then
    Log.Message p.Name
    Else
    Log.Message "Not found"
    End If
    '...
    </pre><hr />

    If this does not help, please send us your project suite along with execution logs via our Contact Support form (http://www.automatedqa.com/support/message.asp)
    Best regards,
    David - SmartBear Support

  3. #3
    Junior Member
    Join Date
    Apr 2009
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ObjecT does not exist

    i used the following find by implementing the following code, the find command recognises the "form" i am having problem with also returns the name of the form, but still when i rerun the test, the test fails. object not found..bla bla....
    Delay(2000)
    Set p = p1.FindChild("Name", "*aspnetForm*", 10)
    If p.Exists Then
    Log.Message p.Name
    Else
    Log.Message "Not found"
    End If

  4. #4
    Senior Member
    Join Date
    Oct 2003
    Posts
    928
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: ObjecT does not exist

    Hello mariajoseph,

    Could you please zip the entire project suite folder along with the new logs and send us the archive?

    Thanks in advance.
    Regards,
    Alex - SmartBear Support

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:12 PM.

Copyright BetaSoft Inc.