I'm stuck with this problem:
Our test page will show a spinner while loading data. To solve this problem I added the following lines in a method to make sure the spinner was not present before resuming:
IWebDriver driver = SeleniumHelper.GetWebDriver();
WebDriverWait wait = new WebDriverWait(SeleniumHelper.GetWebDriver(), TimeSpan.FromSeconds(10));
wait.Until(ExpectedConditions.InvisibilityOfElementLocated(By.Id("dvLoading")));
However I would like to create a method that will always be executed before each other method so I wouldn't need to add this lines to the already created methods.