DevExpress / testcafe

A Node.js tool to automate end-to-end web testing.
https://testcafe.io
MIT License
9.82k stars 671 forks source link

SetFileUpload is not working.. #8254

Closed testcafe-HK closed 1 month ago

testcafe-HK commented 2 months ago

What is your Scenario?

Getting werired way of error for upload await t .switchToIframe('#SelectDocumentToUploadPopup-2 > iframe'); await t .setFilesToUpload('#documents\:upload\:file', ["C:\CCC\CL30-PARKS.pdf"]) .click(atlasPage.addDocuments_btn); This is the addDocument input view source

What is the Current behavior?

1) Cannot find the following file(s) to upload: " C : C C C C L 3 0

  P
  K
  .
  p
  d
  f
  "

What is the Expected behavior?

File should be uploaded

What is the public URL of the test page? (attach your complete example)

It's internal

What is your TestCafe test code?

Getting werired way of error for upload await t .switchToIframe('#SelectDocumentToUploadPopup-2 > iframe'); await t .setFilesToUpload('#documents\:upload\:file', ["C:\CCC\CL30-PARKS.pdf"]) .click(atlasPage.addDocuments_btn); This is the addDocument input view source

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

1.Upload document 2. 3.

TestCafe version

3.5

Node.js version

No response

Command-line arguments

npm run test:e2e

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

PavelMor25 commented 2 months ago

Hello @testcafe-HK,

Please try the latest version of TestCafe. If the issue persists, please share a minimal working example so that the TestCafe team can investigate your issue in more detail.

github-actions[bot] commented 1 month ago

This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone.