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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -