.net testing, Object not found on object repository error, what am i doing wrong? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: .net testing, Object not found on object repository error, what am i doing wrong? (/Thread-net-testing-Object-not-found-on-object-repository-error-what-am-i-doing-wrong) |
.net testing, Object not found on object repository error, what am i doing wrong? - ptreey - 03-11-2008 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") RE: .net testing, Object not found on object repository error, what am i doing wrong? - sreekanth - 03-11-2008 Can you check mandatory properties of frame siteview(these properties can change) and reply to us? RE: .net testing, Object not found on object repository error, what am i doing wrong? - ptreey - 03-11-2008 Here is a snapshot of frame siteview in the repository, i am not exactly sure what i should be checking for in mandatory properties of frame, but this is what i have My mandatory property of Frame are 1) html id 2) name Assistive property of Frame are 1) title 2) html tag 3) url Do these look right? should i change them? RE: .net testing, Object not found on object repository error, what am i doing wrong? - ptreey - 03-14-2008 I also tried making it wait before calling the object but that did not help and i have a similar script on another page and that one works w no problems. So i am nothing but puzzled here. RE: .net testing, Object not found on object repository error, what am i doing wrong? - ptreey - 03-18-2008 I also notice i have the same problem if i have a webButton that appears multiple times on a page, but inside different tables, in the object spy i can see it inside a table, but when i refer to it i refer to it directly from the frame. And if i try to refer to it like this frame("frame name").webTable("tablename").webButton("Button Name").Click then i get an error. I tried messing around with Object Repository and added onclick property because that was the only thing different between all my buttons, but it still would not be able to find the button. It seems in both cases my problems are related cause in both cases i cannot identity the objects correctly. RE: .net testing, Object not found on object repository error, what am i doing wrong? - sreekanth - 03-18-2008 Ptreey, i can really answer if you can send me the sourse code of the page you are accessing and the action that you want to do. second thing, you cant webtable can not be a parent of webbutton both are independent of each other.this is the reason for error while using Code: frame("frame name").webTable("tablename").webButton("Button Name").Click RE: .net testing, Object not found on object repository error, what am i doing wrong? - invertednz - 04-08-2011 Did anyone solve this? I am having a similar issue. When I try to verify that this a link, called WebLink in my object repository, exists on the page I receive the following error: The "WebLink" WebElement 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. I have checked numerous times and the object does exist. I can spy it after the test has failed. So why would I receive this error? |