|
http://www.51testing.com/html/16/n-853516.html我看这个的这个东东,按照这样写,,总是提示空指针,是文件地址有问题吗?还是怎么回事啊,
driver1.findElement(By.id("update")).sendKeys("c:\\personnelList.xls");
要么就是提示:
org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 42 milliseconds
Build info: version: '2.33.0', revision: '4e90c97', time: '2013-05-22 15:33:32'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_22'
Session ID: d69fec91-17b1-4bdb-b078-392daeaa4d03
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
怎么回事啊,,与我的版本有关系吗?
希望帮忙看下- -谢谢! |
|