I have a Driver that clicks a Browse button on the page which opens a Open File Dialog. As of now, I am doing a Thread.Sleep(2000)
but is there a way to figure out when the dialog has opened?
[Fact]
public void UploadDoc()
{
UploadButton.Click();
// How can I wait for the dialog to open instead of doing this?
Thread.Sleep(2000);
// Sends keys to open dialog and continues execution
}