下载此文档

watir备忘录.doc


文档分类:文学/艺术/军事/历史 | 页数:约12页 举报非法文档有奖
1/12
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/12 下载此文档
文档列表 文档介绍
一. 按钮<input type= "button" id= "one" name= "clickme" value= "Click Me" > (:id, "one").click (:name, "clickme").click (:value, "Click Me").click <input type= "image" src= "images/" > (:src, /doit/).click 二. 复选框<input type= "checkbox" id= "one" name= "checkme" > (:id, "one").set (:id, "one").clear (:name, "checkme").set (:name, "checkme").clear 三. 链接<a href= "/titles/ruby/" id= "one" name= "book" > Pickaxe </a> (:id, "one").click (:name, "book").click (:text, "Pickaxe").click (:href, "/titles/ruby/").click 四. 单选框<input type= "radio" name= "clickme" id= "one" > (:id, "one").set (:id, "one").clear (:name, "clickme").set (:name, "clickme").clear 五. 下拉框<select id= "one" name= "selectme" > <option></option> <option> Web Testing </option> <option> in Ruby </option> <option> is fun </option> </select> (:id, "one").set("is fun") (:name, "selectme").set("is fun") (:id, "one").clearSelection contents = (:id, "one").getAllContents 六. 选择列表<select id= "one" name= "selectme" multiple= "multiple" > <option></option> <option> Web Testing </option> <option> in Ruby </option> <option> is fun </option> </select> (:id, 'one').set('Web Testing') (:id, 'one').set('in Ruby') (:id, 'one').set('is fun') (:id, 'one').clearSelection 七. 输入框<input type= "text" id= "one" name= "typeinme" > (:id, "one").set("Watir World") (:id, "one").clear (:name, "typeinme").set("Watir World") (:name, "typeinme").clear 八. 表单 1) 按钮提交表单<form> <input type= "submit" id= "one" value= "Submit" /> </form> (:id, "one").click 2) 无按钮提交表单<form id= "one" name= "loginform" action= "login" method= "get" > <input /> </form> (:id, "one").submit (:name, "loginform").submit (:action, "login").su

watir备忘录 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数12
  • 收藏数0 收藏
  • 顶次数0
  • 上传人n22x33
  • 文件大小218 KB
  • 时间2017-06-11
最近更新