I have a question about waits in selenium and want to know what is the best way to just perform a general wait.
Virtually I type into a test bar and then a drop down appears. The design in the HTML is bad so what I need to do is:
1: write my text in the test input which is below
WebDriverWait waitAgency = new WebDriverWait(_driver, TimeSpan.FromSeconds(3));
waitAgency.Until(ExpectedConditions.ElementToBeClickable(By.Id(_webElement["agency"])))
.SendKeys("test agent");
2: I will then just need to wait 2 seconds becasue the drop down may need to load up the value. This is what I need help with.
3: I select the 'TAB' button so it selects the value:
_driver.FindElement(By.Id(_webElement["agency"])).SendKeys("TAB");
My question is in regards to point 2, what is the best way to just wait for 2 seconds before selecting the 'TAB' button? I have nothing to wait until, I just want to wait 2 seconds.
Thanks,