Using PopupWatcher
Posted: Wed Dec 09, 2015 6:11 pm
I have added the PopupWatcher code to the Program.cs. It appear to be finding the popup and does clear it. However, when I examined the Ranorex report the ' Info - Popup Watcher - Found popup dialog ' and the 'Info - Popup Watcher - Click on item' is repeated three times to clear the popup.
try
{
//use PopupWatcher catch 'Please Take Our Survey@ popup
//Popup is named 'Medallia_panel'
PopupWatcher myPopupWatcher = new PopupWatcher();
// Add a Watch using the repository folder object and the info object of the button to click
myPopupWatcher.WatchAndClick(ShopHomeSmartRegression.ShopHomeSmartRegressionRepository.Instance.
HOMESMARTRentToOwnFurnitureElectr1.MEDALLIAMaskInfo, ShopHomeSmartRegression.
ShopHomeSmartRegressionRepository.Instance.
HOMESMARTRentToOwnFurnitureElectr1.MEDALLIAPanelInner1.NoThankYouInfo);
//Start PopupWatch
myPopupWatcher.Start();
error = TestSuiteRunner.Run(typeof(Program), Environment.CommandLine);
//end myPopupWatcher
myPopupWatcher.Stop();
}//try end
Can you suggest how I might stop the Watch and Close repeat three times?
try
{
//use PopupWatcher catch 'Please Take Our Survey@ popup
//Popup is named 'Medallia_panel'
PopupWatcher myPopupWatcher = new PopupWatcher();
// Add a Watch using the repository folder object and the info object of the button to click
myPopupWatcher.WatchAndClick(ShopHomeSmartRegression.ShopHomeSmartRegressionRepository.Instance.
HOMESMARTRentToOwnFurnitureElectr1.MEDALLIAMaskInfo, ShopHomeSmartRegression.
ShopHomeSmartRegressionRepository.Instance.
HOMESMARTRentToOwnFurnitureElectr1.MEDALLIAPanelInner1.NoThankYouInfo);
//Start PopupWatch
myPopupWatcher.Start();
error = TestSuiteRunner.Run(typeof(Program), Environment.CommandLine);
//end myPopupWatcher
myPopupWatcher.Stop();
}//try end
Can you suggest how I might stop the Watch and Close repeat three times?