I have an automation where I am required to save a file in a specified location. I am able to interrogate the SaveAs dialog box successfully.
When I set the value of the txtTextBox via the set value method, the dialog does not recognise the value has been changed therefore leading to the file being saved in the incorrect location. If I use sendkeys the dialog recognises the change of value and saves the file in the correct place.
I would like to avoid using sendkeys due to the sendkeys method not being reliable in the wider automation.
Can anyone recommend how I can avoid using send keys to set the value of the txtTextBox?
I would suggest you perform a Save and then move the file to the correct destination (and file name). In my experience, a Save will always place the file in the Downloads folder which you can derive logically. That is likely the most reliable way to accomplish your requirement.