I am having issues setting up a Popup watcher. I am on Windows 10 Enterprise and Ranorex 8.3.2.
I get several errors saying Popup Watcher does not contain definitions for what I am trying to do (see screenshot)
I'm not sure what I am doing wrong as I have modified code from https://github.com/ranorex/Packages/blo ... Library.cs and pop-up-handler-watcher-t9521.html
/* * Created by Ranorex * User: WoodB * Date: 1/11/2019 * Time: 3:43 PM * * To change this template use Tools > Options > Coding > Edit standard headers. */ using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; using System.Drawing; using System.Threading; using WinForms = System.Windows.Forms; using Ranorex; using Ranorex.Core; using Ranorex.Core.Testing; using Ranorex.Core.Repository; namespace Smoke_Tests_Development { /// <summary> /// Description of StartPopupWatcher. /// </summary> [TestModule("8EA0B730-85F2-42EB-985E-8CA5BC82CD5F", ModuleType.UserCode, 1)] public class StartPopupWatcher : ITestModule { public static Smoke_Tests_Development.Smoke_Tests_DevelopmentRepository repo = Smoke_Tests_Development.Smoke_Tests_DevelopmentRepository.Instance; /// <summary> /// Constructs a new instance. /// </summary> public StartPopupWatcher() { // Do not delete - a parameterless constructor is required! } /// <summary> /// Performs the playback of actions in this module. /// </summary> /// <remarks>You should not call this method directly, instead pass the module /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method /// that will in turn invoke this method.</remarks> void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.0; PopupWatcher myPopupWatcher = new PopupWatcher(); myPopupWatcher.WatchAndClick(repo.COM.Form1132Com.WarningInfo, ClickOut); myPopupWatcher.Start(); } public static void ClickOut(Ranorex.Core.Repository.RepoItemInfo repoItemInfo, Ranorex.Core.Element repoElement){ if (repoItemInfo == repo.COM.Form1132Com.WarningInfo){ repo.COM.Form1132Com.ButtonOK.Click(); } } } }