private AddinRibbonController(ExcelAppWrapper app, bool disableWaitForRibbonReady) { _app = app; _excel = ExcelAutoUtility.GetAppElementFromApp(_app.App.Application); _addinRibbonCtl = AddinTestUtility.GetAddInRibbonTabElement(_excel, app); if (!disableWaitForRibbonReady) { WaitForRibbonReady(); } }
/// <summary> /// Refresh ribbon AutomationElement - required when app-under-test re-instantiates its controls /// </summary> public void Refresh() { //TODO: Determine if this is still necessary, now that improved downstream retries are in place _addinRibbonCtl = AddinTestUtility.GetAddInRibbonTabElement(_excel, _app); }