I’m saving bulk files, and the Set Text activity was saving the files with the default name instead of the given name (which includes a file path). I added a Del Keyboard Shortcut before the Set Text and it seems to work, but the very first file, saves with its default name at the wrong location. The rest of the files then work perfectly fine. It’s as if the Windows Save As screen is overwriting the file name given.
Does anyone have a fix for this? This is working fine on another developers machine (even without the Del Keyboard Shortcut), but it is not working on mine.
-
Delay Before in Set Text Activity: Add a short “Delay before” in property Sometimes, introducing a slight delay can ensure that the Save As dialog is fully loaded and ready to receive input.
-
Simulate Type/Click Activity: Instead of using the “Set Text” activity to enter the file path and name, try using the “Simulate Type” or “Simulate Click” property for the “Type Into” or “Click” activity. This option can help improve compatibility with certain applications and dialogs.
-
Check Selector: Ensure that the selector used in the “Set Text” activity is accurate and unique. If the selector is not reliable, it might cause unpredictable behavior with the automation.
Make sure that the Set Text activity is being executed before the Save As dialog box is opened. You can do this by checking the activity properties for the Set Text activity and making sure that the Execute Before** property is set to Save As.
- Make sure that the file name that you are setting in the Set Text activity is valid. You can do this by checking the file name for any invalid characters, such as spaces or special characters.
- Repair your Windows installation. You can do this by running the System File Checker (SFC) utility.