Click or drag to resize
Ranorex

PopupWatcher Class

Allows watching for unexpected dialogs and popups in the background.
Use Watch(RepoItemInfo, PopupItemCallback) or WatchAndClick(RepoItemInfo, RepoItemInfo) to register for notifications by providing a repository item or RxPath to watch for, as well as a callback to get notified or another repository item to click on if the watched element is found.
Inheritance Hierarchy
SystemObject
  RanorexPopupWatcher

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public sealed class PopupWatcher : IDisposable

The PopupWatcher type exposes the following members.

Constructors
  NameDescription
Public methodPopupWatcher
Initializes a new instance of the PopupWatcher class.
Top
Properties
  NameDescription
Public propertyEnableReportMessages
Gets or sets a value indicating whether to report message when watched items are found and/or clicked.
Public propertyReportCategory
Gets or sets the report category used by the watcher to report messages.
Public propertyRestoreActiveWindow
Gets or sets a value indicating whether the active window should be restored after performing the callback/click action.
Public propertyUpdateInterval
Gets or sets the update interval used to search for popup windows in the background.
Top
Methods
  NameDescription
Public methodClear
Clears all watched repository items and paths.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStart
Starts watching for configured repository items and RxPaths in the background.
Public methodStop
Stops watching for repository items and RxPaths.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWatch(RepoGenBaseFolder, PopupItemCallback)
Watches the specified repository item and invokes the specified callback when the repository item is found.
Public methodWatch(RepoItemInfo, PopupItemCallback)
Watches the specified repository item and invokes the specified callback when the repository item is found.
Public methodWatch(RxPath, PopupPathCallback)
Watches the specified repository item and invokes the specified callback when the repository item is found.
Public methodWatchAndClick(RepoGenBaseFolder, RepoItemInfo)
Watches the repository item specified by watchedItem and clicks on the item specified by clickedItem when the watched item is found.
Public methodWatchAndClick(RepoItemInfo, RepoItemInfo)
Watches the repository item specified by watchedItem and clicks on the item specified by clickedItem when the watched item is found.
Top
See Also