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?
Thread.Sleep(2000)
[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 }
1.4m articles
1.4m replys
5 comments
57.0k users