Closed zhao123haha closed 6 months ago
@zhao123haha, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
FIle uploads are meant to be used with the Hub or Standalone.
https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/#uploads
FIle uploads are meant to be used with the Hub or Standalone.
https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/#uploads
driver.file_detector = LocalFileDetector()
file_input = driver.find_element(By.CSS_SELECTOR, "input[type='file']")
file_input.send_keys(upload_file)
driver.find_element(By.ID, "file-submit").click()
This is a solution for file uploads using input types. How to solve the problem for file uploads that are not of input types?
FIle uploads are meant to be used with the Hub or Standalone.
https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/#uploads
How to handle this type?
💬 Please ask questions at:
That website has an input type for uploading files. Here is code that shows how to do it: https://elementalselenium.com/tips/1-upload-a-file
That website has an input type for uploading files. Here is code that shows how to do it: https://elementalselenium.com/tips/1-upload-a-file
I already know the file upload method using < input > type, but I want to know about the file upload method using < div class="dz-success-mark dz-clickable" id="drag-drop-upload" >< /div >.Because my project doesn't use < input > for file uploads.
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.
What happened?
Using Selenium Grid to run test cases on node machines, file uploads are not functioning. I tried the following three methods but none of them were successful. But All three upload methods mentioned above can be successful on Selenium Hub. The file upload is not of the input type. How can it be operated to perform file uploads on the node machines?
How can we reproduce the issue?
Relevant log output
Operating System
window10
Selenium version
python 3.8.2
What are the browser(s) and version(s) where you see this issue?
Chrome 104.0.5112.81
What are the browser driver(s) and version(s) where you see this issue?
104.0.5112
Are you using Selenium Grid?
v.3.5.3