selenium WebDriver java 版使用指南
代码...................................................................................................................................... 50
css.html......................................................................................................................... 50
css.java.......................................................................................................................... 51
获取测试对象的状态.................................................................................................................. 52
场景...................................................................................................................................... 52
代码...................................................................................................................................... 52
status.html.................................................................................................................... 52
status.java..................................................................................................................... 54
讨论...................................................................................................................................... 55
form 的操作................................................................................................................................. 55
场景...................................................................................................................................... 56
代码.............................................................................................................................................. 56
form.html.............................................................................................................................. 56
form.java....................................................................................................................... 58
执行 js.......................................................................................................................................... 59
场景...................................................................................................................................... 59
代码...................................................................................................................................... 60
js.html........................................................................................................................... 60
js.java............................................................................................................................ 61
处理 alert/con$rm/prompt........................................................................................................... 62
场景...................................................................................................................................... 62
代码...................................................................................................................................... 62
alert.html...................................................................................................................... 63
alert.java....................................................................................................................... 64
wait............................................................................................................................................... 65
场景...................................................................................................................................... 65
代码...................................................................................................................................... 66
wait.html....................................................................................................................... 66
wait.java........................................................................................................................ 67
定位 frame 中的元素................................................................................................................... 68
场景...................................................................................................................................... 68
代码...................................................................................................................................... 69
frame.html.................................................................................................................... 69
inner.html...................................................................................................................... 70
frame.java..................................................................................................................... 71
讨论...................................................................................................................................... 72
acon........................................................................................................................................... 73
场景...................................................................................................................................... 73
代码...................................................................................................................................... 73
讨论...................................................................................................................................... 74
上传文件...................................................................................................................................... 74
场景...................................................................................................................................... 74
代码...................................................................................................................................... 74
upload_$le.html............................................................................................................ 74
3 / 81