//div[@id='upload_button'] driver.findElement(By.xpath("//div[@id='upload_button']")).click(); driver.findElement(By.xpath("//div[@id='upload_button']")).sendKeys("V://Images//CSV/text.csv");
- I have a upload button in my browser
- written a script that will click the button and send the mentioned file from given path
- Here it is selecting the Upload button and file explorer opening
- Not opening path, to send the csv file
//input[@type='file']
xpath at least 1 time in your HTML-DOM?