Comments (6)
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.
working on way how to show you behavior. gimme time :) before ticket get close
from testcafe.
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:
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.
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.
I seem to be running into something similar here
from testcafe.
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)
- Screenshots in macOS Safari: Unable to locate the page area - mark not found. HOT 5
- Request hooks - Redirect responses are not captured HOT 3
- Incorrect screen size when `resizeWindow()` is called after `maximizeWindow()` HOT 2
- navigateTo(url: string): TestControllerPromise; doesn't resolve promise on chrome Version 122.0.6261.129 (Official Build) (arm64) HOT 1
- Does Testcafe works with Superset? HOT 1
- maximise window issue with scrolling to buttons HOT 2
- .click() fails to scroll checkboxes into view for a long form (scrolls to top instead) (Chrome) HOT 8
- Clicking button outside viewport in iframe silently fails in native automation mode HOT 1
- [test] issue
- Importing a markdown file into my React application causes TestCafe to throw HOT 1
- Headless Chrome workaround fails with Chrome 123.0.0.0 HOT 3
- t.scrollBy and t.scroll methods not working properly on virtual scrollers HOT 3
- Unable to proceed to next step after upload file when using setFilesToUpload function HOT 8
- TestCafé can't click on a two-word link split over two lines with native automation enabled HOT 5
- execution stucks! HOT 5
- please add pathPattern to takeElementScreenshot too HOT 1
- Testcafe became very unstable a few weeks ago HOT 2
- Application landing on blank page / not loading property HOT 7
- Checking if an element exists resolves immediately without waiting for timeout HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testcafe.