Forum Discussion
Found a workaround that works for now, had to do "End" keyboard input, down arrow and enter.
The inconsistency happens because File Explorer sometimes isn’t focused when the keys are sent. You can fix this directly in your Keyword Test with a simple, stable sequence:
- Click on a fixed folder (e.g. BAS-Extra) to set focus.
- Delay – 500 to 1000 ms (wait for Explorer to stabilize).
- Keys – Down (move to the next folder).
- Delay – 300 ms.
- Keys – Enter (open it).
This gives Explorer a reliable starting point and ensures the second folder is opened consistently.
🤖 AI-assisted response
👍 Found it helpful? Click Like
✅ Issue resolved? Click Mark as Solution
- Hassan_Ballan24 days ago
Champion Level 3
Another idea:
If the folder name changes but it’s always the second item, you can avoid keyboard timing issues by clicking it directly through the File Explorer object. For example:
let explorer = Sys.Process("explorer"); let list = explorer.Window("CabinetWClass").Window("DirectUIHWND"); list.Child(1).DblClick(); // Opens the 2nd folderThis skips the need for focus or delays and stays stable even if folder names change.
You can also wrap it in a small routine and call it from your keyword test.🤖 AI-assisted response
👍 Found it helpful? Click Like
✅ Issue resolved? Click Mark as Solution