public void UploadFile(string path) { ChoosePhotoButton.Click(); Thread.Sleep(100); SendKeys.SendWait(path); SendKeys.SendWait("{ENTER}"); }