-
Notifications
You must be signed in to change notification settings - Fork 9.2k
uploadFile don´t work with selectors css #1332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How does your site receive images? As far as I know, files can only be uploaded to |
@fran0254 can you post a larger code snippet with the url you're testing against. We need more info to be helpful! You should be selecting the file input with |
how can you check does not exist input type="file". code of site: <div class="insertadonCol">
<div class="photoUploaderWrapper">
<div id="dropArea">
<form action="/images/upload-image-tmp.php"
method="post" class="dropzone" drop-zone="" id="photoUploader"
enctype="multipart/form-data"></form>
</div>
</div>
</div> Code of site DOM |
I don't see an |
Should I use coordinates to drop the file in the box? Can you please put a small example? I do not know how I could do it ... |
We currently don't have support for drop targets. Filed it as #1376 |
Closing in favor of #1376. |
Uh oh!
There was an error while loading. Please reload this page.
My button does not have (input[type="file"]).
I understand that elementHandle.uploadFile only works with (input[type="file"]) and not with id and class selectors css ??
const
uplo = awaitpage.$(".btnAddPhoto");
await
uplo.uploadFile('image.jpg');
Out:
The text was updated successfully, but these errors were encountered: