I am trying to upload a file using selenium webd river but couldn't get this spinet code working
driver.findElement(By.id("uploadForm:j_id135")).sendKeys("path_to_file");
driver.findElement(By.name("uploadForm:j_id139")).click();
I also tried this suggestion: File Upload using Selenium WebDriver and Java too bad didn't work for me
Any ideas?much appreciated