Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.net testing, Object not found on object repository error, what am i doing wrong?
#1
Not Solved Question 
I have a webTable named "Binary Id" that i can see using object spy and that i have added to the repository. I have a table thats lists some files that i can download, this table changes from time to time, so i was going to go down table rows and check if all links are valid, but when i run following code i always get this error:

The "Binary Id" WebTable object was not found in the Object Repository. Check the object Repository to confirm that the object exists or to find the correct name for the object. Here is the code that i am using and i will attach a snapshot of the repository, object spy and the error.

In the object spy its inside another table called "Latest RMS Clients" I tried accessing that table also, but no luck, same error. i am not sure what i am doing wrong here, can anyone help.


Code:
With Browser("RMS Login")
    With .Page("RMS Login")
        .WebEdit("username").Set "user"
        .WebEdit("password").Set "coffee23"
        .Image("ImageButtonLogin").Click
    End With

    With .Page("RMS by Sage")
        .Frame("nav").WebElement("Bullet4").Click
    
.Frame("SiteView").WebElement("monitor-1.03.03-04.i386.rpm").Click
    End With
    .Dialog("File Download").WinButton("Cancel").Click

    With .Page("RMS by Sage")
    .Frame("nav").WebElement("Bullet4").Click
        With .Frame("SiteView")
            RowCount = .WebTable("Binary Id").RowCount
            For row = 2 To RowCount
                Set RMSLink= .WebTable("Binary Id").ChildItem(2,row,"Link",0)
                If TypeName(RMSLink) = "TextLink"  Then
                    RMSLink.Click()
                End If
            Next
        End With
    End With
    
    .Page("RMS by Sage").Frame("header").Link("Logout").Click
    .Page("RMS Login_2").Sync
    .Close
End With


Attached Files Image(s)
           

.txt   code.txt (Size: 846 bytes / Downloads: 93)
Reply


Messages In This Thread
.net testing, Object not found on object repository error, what am i doing wrong? - by ptreey - 03-11-2008, 09:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 871 04-23-2020, 07:08 PM
Last Post: BGunay
  object spy not recognizing object.. pleaseeeee help Sonia Sadeque 3 3,232 12-22-2016, 02:42 PM
Last Post: ishan.mahajan@adp.com
  Do we need object repository?? subhashinid 0 1,881 07-06-2016, 10:07 AM
Last Post: subhashinid
  Intermitent "Object not visible" error erodpr 5 3,297 01-14-2016, 10:55 AM
Last Post: vinod123
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,549 10-28-2015, 12:34 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)