public async Task SelectTab(int tab) { if (!isMeasured) { throw new Exception("SelectTab failed because VendorWindowHandler has not been measured"); } input.MoveMouse(tabX, tabY + (tab - 1) * tabDy); await Task.Delay(100); input.Click(); await Task.Delay(100); }