
Here in this video tutorial you will learn to handle file upload popup in selenium, and how to test file upload popup in software testing.
===== selenium script =======
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class FileUploadPopup {
public static void main(String[] args) {
WebDriver driver=new FirefoxDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get(" http://www.actimind.com/contact.php");
driver.findElement(By.name("file")).sendKeys("C:\\Easy_Tutorials.doc");
}
}
------------------------------------------------------------------------------------------------------------
Please subscribe us:
https://www.youtube.com/c/EasyTutoria...
Like us on Facebook:
https://www.facebook.com/EasyTutorial...
How to handle popup in selenium webdriver | handle File Upload Popup | |
27 Likes | 27 Dislikes |
24,919 views views | 57,381 followers |
Education | Upload TimePublished on 29 Apr 2015 |
No comments:
Post a Comment