Need C# / UI Automation script to pick file from a Chrome Open File Window

Hello Team,

There is a task where I need to upload/attach a file using the chrome browser.The Capture_2 screen shot is what I get when you click on the Choose File button.I cannot integrate this pop up at all.

Tried interrogating by changing few web application properties like start method and hook child process, but no response from the bull eye as its going invisible when i tried to drag in onto the chrome open pop up window.

Expecting this issue can be resolved using C# / UI script, pl let me know the possible ways to overcome this. Any help is appreciated.

Any update Pl..

just a little work around,

try to take a windows adapter ( in Monitor All mode ) and interrogate this HW window control,..

I am working on a script for you using the following file upload. Make sure you have “Inspect Objects”, so that you can adjust as needed.

Here is an example using UIAutomation. The MonitorAll method is by far the simplest, however there are situations where it would not work (if Chrome were running before Runtime for example).

ChromeDialog.zip (157 KB)