panka152
14 years agoContributor
Unable to get menu item through FIND method.
Hi, I need help on finding menu item through FIND method. I am testing a desktop application where I have to click Menu /submenu, I can do it using name mapping technique but unable to do the same using FIND method.
my script is :
set Menu = p.find("Name", "WinFormsObject(menuStrip1)",5)
menu.click "[2|0]" ........[Doesn't work, Test complete gives message 'unable to find the object']
--------------------------------------------------------------------------------------------------------------------------------------------
time being I am using the following script to perform testing is :
p.WinFormsObject("FormMain").stripmainmenu.click "[2|0]" .....[It works]
my script is :
set Menu = p.find("Name", "WinFormsObject(menuStrip1)",5)
menu.click "[2|0]" ........[Doesn't work, Test complete gives message 'unable to find the object']
--------------------------------------------------------------------------------------------------------------------------------------------
time being I am using the following script to perform testing is :
p.WinFormsObject("FormMain").stripmainmenu.click "[2|0]" .....[It works]