'Selenium Upload document scenarios
Unable to click and Select upload button Click on upload button Window popup open to select the file from local drive Select file and upload
`<form name="uploadForm" action="" enctype="multipart/form-data" method="post"><input type="file" name="fileName" id="fileName" style="position:relative;left:-8px;top:-5px;width:100%;margin-left:5px;"> <input type="hidden" name="TARGET_URL" id="TARGET_URL"></form>`
Xpath says - > //*[@id="fileName"]
Still unable to click
with below code
(By.xpath("//*[@id='fileName']")).click();
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
