Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can not identify the object
02-09-2012, 10:11 AM
Post: #1
Can not identify the object

I'm using QTP 9.2. While running script i got this error repeatedly

Cannot identify the object "Login1$Password" (of class WebEdit). Verify that this object's properties match an object currently displayed in your application.

When i run the script for first time it runs perfectly but now this error occurred. I have tried all the possible solution check object properties through object repository and object spy and enable smart identification invokes:
object not unique (3 objects found) or object not found..

There is no mismatch in the properties and i also try changes the values to regular expression and also added ordinal identifier
problem is still there
Find all posts by this user
Quote this message in a reply
02-09-2012, 12:57 PM
Post: #2
RE: Can not identify the object
Can you delete the old object and add the new one? Sometimes you can't figure out what went wrong with the object.

Plz post if you still face the issue.
Find all posts by this user
Quote this message in a reply
02-09-2012, 01:11 PM (This post was last modified: 02-09-2012 02:32 PM by Anum Saleem.)
Post: #3
RE: Can not identify the object
(02-09-2012 12:57 PM)Ankesh Wrote:  Can you delete the old object and add the new one? Sometimes you can't figure out what went wrong with the object.

Plz post if you still face the issue.

I have use the update from application button but it solve the problem in some cases, when i run the script again it generate this error again

Add the new object did not solve the problem
Find all posts by this user
Quote this message in a reply
02-09-2012, 03:09 PM
Post: #4
RE: Can not identify the object
Plz paste ur code and the snapshot of the object spy for that object.
Find all posts by this user
Quote this message in a reply
02-09-2012, 03:37 PM (This post was last modified: 02-09-2012 03:38 PM by Anum Saleem.)
Post: #5
RE: Can not identify the object
(02-09-2012 03:09 PM)Ankesh Wrote:  Plz paste ur code and the snapshot of the object spy for that object.

Browser("Browser_2").Page("Login Form").WebEdit("Login1$Password").SetSecure "4f3349487fff5e22744f606d"
Browser("Browser_2").Page("Login Form").WebEdit("Login1$UserName").Set "madeeha"
Browser("Browser_2").Page("Login Form").Image("Login1$LoginButton").Click 54,13
Browser("Browser_2").Page("Softronic Applications").Image("HCMS HR").Click
Browser("Softronic - HCMS_2").Page("Softronic - HCMS").Link("Employee Profile (Basic)").Click
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_2").WebButton("New").Click
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_3").WebEdit("txtFirstName").Set "Ahmed"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_3").WebEdit("txtLastName").Set "Bilal"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebEdit("txtEmail").Set "ahmed.bilal@gmail.com"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").Image("crttxtDOB$CalendarImgCalendar").Click 8,6
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebEdit("crttxtDOB$CalendarTxtDate").Set "01/01/1986"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").Image("imgCNICExpiry").Click 7,9
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebEdit("txtCNICExpiry").Set "02/01/2014"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebEdit("txtCNIC").Set "655214479332"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebEdit("txtNIC").Set "98566332201"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebEdit("txtFatherNIC").Set "65214489633"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_4").WebButton("Job Specification Information").Click
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_5").Image("Find").Click
Browser("Lookup_2").Page("Lookup").Link("Select").Click
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_6").Image("Find").Click
Browser("Lookup_2").Page("Lookup").Link("Select_2").Click
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_7").Image("txtJoiningDate$CalendarImgCale").Click 9,7
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_7").WebEdit("txtJoiningDate$CalendarTxtDate").Set "01/01/2011"
Browser("Softronic - HCMS_2").Page("Softronic - HCMS_8").WebButton("Save").Click


Attached File(s) Image(s)
   
Find all posts by this user
Quote this message in a reply
02-10-2012, 11:40 AM
Post: #6
RE: Can not identify the object
ok.. Disable smart identification.

In OR Test object detail section, click on the '+' sign(green color) and add few more properties of the object such as name, id etc.

I hope this will help. And if you get the error more than one object was found, plz use the index property as well.
Find all posts by this user
Quote this message in a reply
02-10-2012, 03:11 PM
Post: #7
RE: Can not identify the object
Ok Thanks,
Disable smart identification solved the problem for that particular object.
When im recording script for any other form this error occur again or when im running the script for 2nd time it will appear again..Is there any QTP .net add in problem that QTP not recognizing objects??
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  object not able to identify rjkmr.aiht 1 168 04-24-2012 10:41 PM
Last Post: Ram2009
  Err: Cannot identify the specified item of the object. nikku 2 1,091 08-28-2011 01:40 AM
Last Post: nikku
  Cannot identify the specified item of the regions object. Uma 3 1,133 08-10-2011 01:14 AM
Last Post: Uma
  How to identify Runtime Object in Java applications using QTP? subbu 0 616 08-05-2011 09:00 PM
Last Post: subbu
  Showing Cannot identify the object error while we run the QTP arun_mohan_c 1 1,413 02-14-2011 01:04 PM
Last Post: arun_mohan_c

Forum Jump:


User(s) browsing this thread: 1 Guest(s)