Selenium WebDriver - How do you upload a file?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - How do you upload a file?
To upload a file we can use sendKeys() method.
driver.findElement(By.xpath(“input field”)).sendKeys(“path of the file which u want to upload”);
1
want to drop
driver.findElement(By.xpath(“input field”)).sendKeys(“path of the file which u want to upload”);
(Continued on next question...)
Other Interview Questions
|