Micro Focus QTP (UFT) Forums

Full Version: Cannot identify the Specified item
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Hi Jyothi,

Could you elaborate your current requirement and paste the code you have tried.
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
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.
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
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"