mardi 6 décembre 2016

How to upload the file using JUNIT_Selenium?

I tried to upload the file using JUNIT_Selenium.

WebElement fileInfo = driver.findElement(By.xpath("//input[@type='file']"));
fileInfo.sendKeys('my file root');

But, the popup window was not closed in this way :(

Cloud you please give me the answer to solve this problem?

(browser used : Chrome)

Aucun commentaire:

Enregistrer un commentaire