Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot identify the specified item
#1
Not Solved
Hi ,

I am totally new to QTP. The very first script that I am trying to run is to open,Edit and save a notepad file .
But I am getting below error :
Cannot identify the specified item of the WinTreeView object. Confirm that the specified item is included in the object's item collection.

Below is my code snippet :

SystemUtil.Run "C:\Windows\system32\notepad.exe","","%HOMEDRIVE%%HOMEPATH%",""
Window("Notepad_2").WinEditor("Edit").Type "rjkur"
Window("Notepad_2").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp
Window("Notepad_2").Dialog("Save As").WinTreeView("WinTreeView").Select "Favorites;Desktop"
Window("Notepad_2").Dialog("Save As").WinEdit("File name:").SetSelection 0,5
Window("Notepad_2").Dialog("Save As").WinEdit("File name:").Set "gfg"
Window("Notepad_2").Dialog("Save As").WinButton("Save").Click
Window("Notepad_2").Close

If anyone can help me in this please .

Thanks in advance .. !!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WinListView set item command Shahino007 0 2,521 10-06-2015, 03:57 PM
Last Post: Shahino007
  How to identify the properties of amenu item(not Weblist)oncethe menu tab is clicked? raval 1 2,601 10-02-2012, 09:16 PM
Last Post: jcraig26
  Get value of a List view item qtpbegin 4 13,746 08-08-2012, 04:58 PM
Last Post: Deepak_QTP
  Creating ObjectRepository item through VBScript LogicaLInsanity 0 2,371 01-24-2012, 03:08 AM
Last Post: LogicaLInsanity
  Err: Cannot identify the specified item of the object. nikku 2 9,477 08-28-2011, 01:40 AM
Last Post: nikku

Forum Jump:


Users browsing this thread: 1 Guest(s)