I am using Selenium WebDriver + C# to handle a File upload process. When clicked on a button, the standard Windows File Open dialog box appears.

I use SendKeys to specify the names of the files as

```
SendKeys.SendWait(filePath);
SendKeys.SendWait(@"{Enter}");

```

Sometime the file name is not filled in correctly in File Open Dialog box. In that case I would like to read the value entered in the file name. How can I do it in C#? Is there a GetKeys methods like SendKeys