Uploading a file with the "type" command started getting an error

Problem Analysis

Your hypothesis is correct and well-founded. Based on my research, Katalon Recorder 7.1.0 introduced regressions that are causing issues with file uploads and form interactions. The community has reported multiple issues with version 7.1.0, and your specific error pattern—where the file upload succeeds but then fails with a validation error after the page DOM changes—is consistent with known issues in this release.

The error TypeError: Cannot read properties of undefined (reading 'match') indicates that Katalon Recorder is attempting to validate or process the target element after the upload completes and the page has changed, causing the element reference to become invalid.

Key Finding: Multiple users have reported that version 7.1.0 introduced regressions affecting form interactions, including file uploads and input handling, particularly on dynamic pages. Some users have successfully worked around this by reverting to version 6.0.3.


Recommended Solutions

Solution 1: Downgrade to Katalon Recorder 6.0.3 (Most Reliable)

Since you’ve already tried numerous workarounds without success, and multiple community members have confirmed that version 6.0.3 works reliably for file uploads while 7.1.0 has regressions, downgrading is your most practical option:

  1. Uninstall Katalon Recorder 7.1.0 from Chrome
  2. Download version 6.0.3 from crx4chrome.com
  3. Install the older version manually by:
    • Opening chrome://extensions/
    • Enabling “Developer mode”
    • Dragging the downloaded .crx file into the extensions page
  4. Test your file upload script—it should work without the error

Why this works: Version 6.0.3 doesn’t have the post-upload validation bug that was introduced in 7.0+ versions.


Solution 2: Add a Wait/Pause Step (Temporary Workaround)

If you prefer to stay on 7.1.0, try adding a wait step immediately after your file upload to allow the page to fully transition before Recorder attempts validation:

type | //input[@type='file'] | ${fileName}
pause | 2000

Or use element-based waiting:

type | //input[@type='file'] | ${fileName}
waitForElementNotPresent | //input[@type='file'] |

This may suppress the error by ensuring the validation occurs after the page has stabilized.


Solution 3: Report as a Bug (If You Want to Stay on 7.1.0)

If downgrading isn’t an option, you should report this as a bug to Katalon. The error pattern you’ve described—successful file upload followed by post-upload validation failure—is a clear regression that the development team should address.


Key Considerations

  • Version 7.1.0 Issues: The release notes mention bug fixes for pop-ups and script conflicts, but don’t address the file upload regression that users have discovered post-release.
  • Community Consensus: Multiple users have confirmed that reverting to 6.0.3 resolves similar issues with form interactions and file uploads.
  • File Access Permission: You’ve already confirmed “Allow access to file URLs” is enabled, which is correct—this isn’t the issue.
  • The Error Pattern: The match error suggests Recorder is trying to parse or validate the target element after it no longer exists in the DOM, which is a timing/validation logic issue in 7.1.0.

References

1 Like