Having Trouble Recording Right click-"save picture as"!
I was trying to use SilkTest 7.5 evaluation version to write a script to test our java application. But when I right-clicked my mouse, nothing was recorded in the testcase. Eg, when I rightclicked an image and selected "save as", the script only recorded :" [ ] SavePicture.SetActive ()
[ ] SavePicture.Desktop.Click ()
[ ] SavePicture.Save.Click ()
So when I ran the testcase after recording, the error would be:" Window '[DialogBox]Save Picture' was not found".
Somebody knows how I could fix this problem?
Thanks a lot!
Re: Having Trouble Recording Right click-"save picture as"!
In my experience SilkTest doesn't record right-clicking very well. Check out the PopupSelect() method. It will right-click on an object for you and then select the menu item that you specify. eg.
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> [ ] myApp.SetActive()
[ ] myApp.myImage.PopupSelect(2,2, "Save Picture As..."</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The first two numbers are the X and Y co-ordinates of where to click on the object. This example will right-click on the top-left corner of the image and try to select "Save Picture As..." from the resulting context menu. Hope that helps.