In nativeAutomation, setFileUpload does nothing #7832
Labels
FREQUENCY: level 1
SYSTEM: native automation
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
Scenario need to upload a file
What is the Current behavior?
await t.setFileUpload does nothing
What is the Expected behavior?
await t.setFileUpload sets the file to upload
What is your public website URL? (or attach your complete example)
https://www.htmlquick.com/reference/tags/input-file.html
What is your TestCafe test code?
import { Selector } from 'testcafe';
fixture
Sandbox
test('fileinput', async t =>{
await t.navigateTo("https://www.htmlquick.com/reference/tags/input-file.html");
})
Your complete configuration file
"skipJsErrors": true,
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
I have the same issue on a server that I cannot share so I tried to find a public website to reproduce.
Here the sendData is failing because of target='blank' under nativeAutomation so I just check the value of the input.
Running with nativeAutomation, the input is not set.
With the option --disable-native-automation , test is passing
TestCafe version
3.0.0
Node.js version
18.16.0 and 16.19.2
Command-line arguments
--disable-multiple-windows
Browser name(s) and version(s)
chrome
Platform(s) and version(s)
Windows 11, Ubuntu 20
Other
No response
The text was updated successfully, but these errors were encountered: