Man*_*ngh 0 java google-chrome webdriver selenium-webdriver
ChromeDriver开发团队已经解决了这个问题:http://code.google.com/p/selenium/issues/detail? id = 1725&q = chrome%20file%20upload&solpec = ID%20Stars%20Type%20Status%20Priority%20Milestone %20Owner%20Summary
但我无法实现它.有人可以向我展示一个示例或使用ChromeDriver在Chrome上测试文件上传的解决方法吗?
driver.findElement(By.id("upload")).sendKeys("/path/to/the/file");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2550 次 |
| 最近记录: |