Hi Nagappan,<br><br>I saw some inconsistency in the parameter when calling these two functions : hasstate () and doesmenuitemexist().<br><br>1) ldtp.doesmenuitemexist(windows_name, 'mnuFile;mnuCloseAll')<br><br>doesmenuitemexist () requires the full path which is the 'mnuFile;mnuCloseAll' menu.<br>
<br>2) ldtp.hasstate(windows_name, 'mnuCloseAll', ldtp.state.SENSITIVE)<br><br>hasstate () only requires the last node which is 'mnuCloseAll'.<br><br>Is this design deliberately as this?<br><br><br>The second question is that if 2 root menus has a submenu with the same name for example, 'mnuFile;mnuCloseAll' and 'mnuProject;mnuCloseAll'. How ldtp.hasstate() will return the status with input of 'mnuCloseAll'? Will it only return the first found mnu named "mnuCloseAll"? I did a simple experiment. It seems it indeed returns the attribute for the first mnu. So how to get the attribute for the 2nd sub menu item.<br>
<br>Thanks<br>Scott<br><br><br><br>