diff --git a/testCafe/questions/file.js b/testCafe/questions/file.js index 9dde5cd549..be931c3481 100644 --- a/testCafe/questions/file.js +++ b/testCafe/questions/file.js @@ -50,7 +50,7 @@ frameworks.forEach(framework => { let surveyResult; await ClientFunction(() => { - document.querySelector("div[aria-label=\"Select File\"]").click = () => { window.chooseFileClickedTest = "yes"; }; + document.querySelector("label[aria-label=\"Select File\"]").click = () => { window.chooseFileClickedTest = "yes"; }; })(); await t.pressKey("tab"); await t.pressKey("enter");