java - WebDriver: input type=file - how to attach a file when filing the form -
i testing web application selenium, webdriver, jbehave, thucydides.
when try choose file when filling form:
webelementfacade wef = find(by.cssselector("#inputtypefileid")); wef.type("/data/file.txt");
i such exception:
net.thucydides.core.webdriver.webdriverassertionerror: org.openqa.selenium.webdriverexception: element must user-editable in order clear it.
i cannot find solution attaching files in jbehave tests. how should point file upload when testing web applications?
kind regards, lukasz
Comments
Post a Comment