Help with opening a file with windows explorer

Apr 23, 2014 at 10:27 AM
Hi everyone,

I am trying to open a file with UIAutomation.0.8.7B2.NET35.
What I want to achieve is simply typing in the value in the file name bar (the browser is the windows file explorer) and then select open, but it does not seem that it is typing any value in the file name bar.
The code I have thus far is
Get-UiaEdit -AutomationId '1148' -Class 'ComboBox' -Name 'File name:' -Win32 | Set-UiaEditText -Text $Textbar;
Get-UiaButton -Class 'Button' -Name 'Open' | Invoke-UIAButtonClick;

$textbar is the string value I want to enter, I goes successfully over this step but when It tries to select open i see that a value has not been entered.