Testing html5 file upload with Capybara / Selenium?

I am writing an application that uses the html5 file upload capabilities, that is, the user can drag and drop the file from his desktop into the div and it will be downloaded using jquery.filedrop .

Does anyone know if it can be checked with capybara / selenium?

+4
source share
1 answer

I am testing this with Selenium WebDriver.
it looks like this:

WebElement element = driver.findElement(By.name("source")); WebElement target = driver.findElement(By.name("target")); (new Actions(driver)).dragAndDrop(element, target).perform(); 

more about Selenium WebDriver

0
source

All Articles