Code Monkey home page Code Monkey logo

Comments (6)

PavelMor25 avatar PavelMor25 commented on June 13, 2024

Hello @gnig,

I tested your example, and the file is uploaded. To check upload input, I added some uploadInput.value logs to your test:

const finput = Selector('input[type="file"]')
await t.setFilesToUpload(finput,'myFile.pdf')
console.log(await finput.value)

Please refer the following help topic to learn how to observe the state of the input element.

However, to investigate your scenario, we need a more detailed example.

Please let us know your results.

from testcafe.

gnig avatar gnig commented on June 13, 2024

working on way how to show you behavior. gimme time :) before ticket get close

from testcafe.

gnig avatar gnig commented on June 13, 2024

Project folder: C:\Users\username\WebstormProjects\epp-test\
Test file location: C:\Users\username\WebstormProjects\epp-test\src\tests\done
Helper file with some script inc. upload file to form: C:\Users\username\WebstormProjects\epp-test\src\helpers
PDF file i want to upload (storing in same folder as test file): C:\Users\username\WebstormProjects\epp-test\src\tests\done

Function that trying upload file to form:
image

Test output:


 Stavebni sporeni - Dite a Zastupce
 √ Test 1 - check
 × Add document Contract 
   1) Uncaught object

   "{"callsite":{"filename":"C:\\Users\\username\\WebstormProjects\\bt-epp-test\\src\\test-data\\Epp.CommonFunctions.ts","lineNum":710,"callsiteFrameIdx":5,"stackFrames":[{},{},{},{},{},{},{},{},{}],"isV8Frames":true}}"
      was thrown. Throw Error instead.
      Browser: Chrome 123.0.0.0 / Windows 11
1/2 failed (49s)

from testcafe.

PavelMor25 avatar PavelMor25 commented on June 13, 2024

I tried to reproduce the issue with the scenario you described, but I couldn't replicate the error. However, we encountered a similar issue previously, which was related to lite-server, which utilizes browser-sync. You can try the solution described in the thread.

If that doesn't work, please share a Minimal Working Example, so that our team can research the issue and help you.

from testcafe.

ayemelyanenko-chegg avatar ayemelyanenko-chegg commented on June 13, 2024

I seem to be running into something similar here

#8173

from testcafe.

github-actions avatar github-actions commented on June 13, 2024

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.

from testcafe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.