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
I cannot upload files with selenium web driver. #4681
Comments
Please check this issue. This configuration set working for me..!!
|
Please provide full stacktrace for exception |
Thanks for the advices, I found the solution to my problem. |
Hi @rleaplaza Have you tried this with Chrome browser? I am facing similar problem with chromedrive latest version & browser version version: 70.0.3538.110. |
I have a problem uploading a file via selenium web driver v.3.5.3 in firefox 55.0.3
Geckodriver 0.18.0
Both of the instructions are correct.:
WebElement elem=driver.findElement(By.xpath("//input[@type='file']"));
elem.sendKeys("C:\opt\formatos_excel_importacion\prueba.txt");
In Google chrome it works fine, but it doesn't do the same in firefox.
The error says: Exception in thread "main" org.openqa.selenium.InvalidArgumentException: File not found: C:\opt\formatos_excel_importacion\prueba.txt
The text was updated successfully, but these errors were encountered: