ChromeDriver file upload example
ChromeDriver dev team says thet have fixed the issue here: http://code.google.com/p/selenium/issues/detail?id=1725&q=chrome%20file%20upload&colspec=ID%20Stars%20Type%20Status%20Priority%20Milestone%20Owner%20Summary
But I am not able to implement开发者_运维知识库 it. Can somebody show me an example or any workaround for testing file upload on Chrome using ChromeDriver?.
driver.findElement(By.id("upload")).sendKeys("/path/to/the/file");
I know people have done it through AutoIT when there was no support for Alert. Perhaps a workaround until the Alert is supported in ChromeDriver?
精彩评论