Micro Focus QTP (UFT) Forums
Cannot identify the Specified item - 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: Cannot identify the Specified item (/Thread-Cannot-identify-the-Specified-item)



Cannot identify the Specified item - jyoti_kumari - 12-08-2010

Hi...

i am running QTP 11.0 30days trail version.
i captured desktop application (windows based).
it captured everything but when i tried to run the recorded script it displayed error message that "Cannot identify the specified item of the look in :object.Confirm that the specified item is included in the object collection" .

i get this error message each time when i try to browse or access anything which is saved on my local machine.
please help me out.Sad

Thanks


RE: Cannot identify the Specified item - sreekanth chilam - 12-09-2010

Hi Jyothi,

Could you elaborate your current requirement and paste the code you have tried.


RE: Cannot identify the Specified item - jyoti_kumari - 12-09-2010

Hi SreeKanth,

Thanks for replying.

Here is my whole code which i was trying to run.
Sometimes it got stuck up at line 2 or on line 12.
My requirement is that i want my script for different files saved at different location.i read about this on net & i found that i have to add Object in OR,i did that also.still it is not working.

Code:
Dialog("SQL Recovery").WinToolbar("ToolbarWindow32").Press 1
Dialog("SQL Recovery").Dialog("Open").WinListView("Look in:").Select "Test.mdf"
Dialog("SQL Recovery").Dialog("Open").WinButton("Open").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Close").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("No").Click
Dialog("SQL Recovery").WinToolbar("ToolbarWindow32").Press 4
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").WinEdit("Server Name :").Set "jyoti"
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").WinEdit("Database Name :").Set "Test1"
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").WinButton("Export/Save").Click
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").Dialog("SQL Recovery").WinButton("Yes").Click
Dialog("SQL Recovery").Dialog("SQL Server Recovery Export").Dialog("SQLRecovery").WinButton("OK").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Close").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Yes").Click
Dialog("SQL Recovery").Dialog("SQL Recovery").Dialog("Browse For Folder").WinTreeView("Please select a folder").Select "Desktop"
Dialog("SQL Recovery").Dialog("SQL Recovery").Dialog("Browse For Folder").WinButton("OK").Click
Dialog("SQL Recovery").Close
Dialog("SQL Recovery").Dialog("SQL Recovery").WinButton("Yes").Click
Dialog("SQL Recovery_2").Minimize



RE: Cannot identify the Specified item - Saket - 12-10-2010

with this piece of statements, make sure you have "Test.mdf" is there in list view.
QTP is not able to find the item there in the list and so the error is there. if you requirement permits you can use index instead of values.


RE: Cannot identify the Specified item - ashy - 07-30-2011

I am trying to automate gmail pages. When I try to click on contact button or click on any contacts, QTP fails to record these steps, I tried lower level logging and that failed as well. It does not even recognise any field on that contact for checkpoint validation. I tried using virtual object generator and added web add in, still no luck. What can I do next?

Thanks



RE: Cannot identify the Specified item - rajpes - 07-30-2011

i just recorded it in my gmail, it works fine
Code:
Browser("Gmail: Email from Google").Page("Gmail - Inbox").Link("Contacts").Click
Browser("Gmail: Email from Google").Page("Gmail - Contact List").WebCheckBox("c").Set "ON"