selenium2.0_中文帮助文档

时间:2021-10-07 07:42:04
【文件属性】:

文件名称:selenium2.0_中文帮助文档

文件大小:107KB

文件格式:DOC

更新时间:2021-10-07 07:42:04

selenium2.0

第1章 Webdirver基础 2 1.1 下载selenium2.0的lib包 2 1.2 用webdriver打开一个浏览器 2 1.3 打开测试页面 2 1.4 GettingStarted 2 第2章 Webdirver对浏览器的支持 4 2.1 HtmlUnit Driver 4 2.2 FireFox Driver 4 2.3 InternetExplorer Driver 4 第3章 使用操作 4 3.1 如何找到页面元素 4 3.1.1 By ID 5 3.1.2 By Name 5 3.1.3 By XPATH 5 3.1.4 By Class Name 5 3.1.5 By Link Text 5 3.2 如何对页面元素进行操作 6 3.2.1 输入框(text field or textarea) 6 3.2.2 下拉选择框(Select) 6 3.2.3 单选项(Radio Button) 6 3.2.4 多选项(checkbox) 7 3.2.5 按钮(button) 7 3.2.6 左右选择框 7 3.2.7 弹出对话框(Popup dialogs) 7 3.2.8 表单(Form) 8 3.2.9 上传文件 (Upload File) 8 3.2.10 Windows 和 Frames之间的切换 8 3.2.11 拖拉(Drag andDrop) 8 3.2.12 导航 (Navigationand History) 8 3.3 高级使用 9 3.3.1 改变user agent 9 3.3.2 读取Cookies 9 3.3.3 调用JavaScript 9 3.3.4 Webdriver截图 10 3.3.5 页面等待 10 第4章 RemoteWebDriver 10 4.1 使用RemoteWebDriver 10 4.2 SeleniumServer 11 4.3 How to setFirefox profile using RemoteWebDriver 11 第5章 封装与重用 12 第6章 在selenium2.0中使用selenium1.0的API 14


网友评论