teamcfadvance / CFSelenium

A native Selenium WebDriver binding for ColdFusion
Apache License 2.0
81 stars 32 forks source link

CFSelenium - handling file uploads #11

Closed sreiser closed 12 years ago

sreiser commented 12 years ago

When converting the html (xml format) created by the Firefox IDE to ColdFusion cfc's, for file uploads it creates the same format as for typing in text,
selenium.type("id=inputid","localfilepath");

This does not work for uploading files when converted to Java for CFSelenium. An example for "Selenium4j" which uses JUnit testing via Eclipes is to replaces the session().type("id=inputid","localfilePath") with a wrapped FirefoxDriver and firefoxDriver.findElement(By.id("id=inputid")).sendKeys("localfilePaths");

I am seeking a successful format for testing forms wtih document uploads using CFSelenium.

Thank you, Steve

bobsilverberg commented 12 years ago

Thanks for the feedback, Steve. The formatter that comes with CFSelenium for Selenium-IDE is really just meant to create a skeleton test which one would then go and edit/tweak. It sounds like you know what changes need to be made to get the test to run, so I would suggest just making those changes in your own test. If you would like to contribute a patch to the formatter to include this that would be fine, but it isn't a priority, so I won't be spending any resources in trying to change it myself.