Right-click menu - Open with Adobe Reader
I'm attempting to open a PDF from the desktop using the right-click menu option. It runs successfully on the machine recorded, but fails on a different test machine. Any ideas why?
var folderView;
explorer = Aliases.explorer;
explorer.wndShell_TrayWnd.TrayNotifyWnd.TrayShowDesktopButtonWClass.Click(2, 18);
folderView = Aliases.explorer.wndWorkerW2.SHELLDLL_DefView.FolderView;
folderView.SelectItem("Test_PDF")
folderView.ClickItemR("Test_PDF", 0);
folderView.PopupMenu.Click("Open with Adobe Acrobat Reader DC");
There error is basically the same as before... something is incorrect in the mapping of some of the components. Why it's using progman versus wndWorker I'm not sure. However, I don't think re-recording is the answer. If you have a test that works on one machine and doesn't on another, then there are differences between the two environments that must be accounted for somewhere in your test using conditional logic (if/then/else). Likewise, your name mapping may need to account for those differences in environments.