Watir
文章平均质量分 78
lt_fina
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Understanding Watir
使用Watir,主要通过是使用Watir::IE的一个实例来获得页面上的各种元素,比如button,link...,然后你可以对这些元素进行操作,比如点击一个button,点击一个link... ie = IE.new ie.goto("http://somewhere") ie.button(:caption, /save/).click转载 2012-09-20 11:32:29 · 356 阅读 · 0 评论 -
watir基本语法大全
1 1.使用Watir工具,需要在脚本中加上 2 require 'watir' 3 2.创建一个IE的测试实例 4 ie = Watir::IE.new 5 或者在创建的同时直接转到页面 6 ie = Watir::IE.start("http://mytestsite") 7 Watir使用start方法同时创建一个浏览器实例并转到一个页面。 8 3.转载 2012-09-20 11:18:08 · 565 阅读 · 0 评论 -
在Watir中运用xpath初级篇
在Watir中运用xpath初级篇 对于Watir操作IE浏览器,目前并没有录制工具来帮助测试人员,一般靠测试人员使用IE Developer Toolbar辅助进行元素识别,然后编写测试脚本。 在编写脚本过程中,主要通过是使用Watir::IE的一个实例化对象@ie来获得页面上的各种元素,比如button,link…然后可以对这些 元素进行操作。(Watir识别HTML元素的方法详见附表转载 2012-10-19 16:52:25 · 1081 阅读 · 0 评论 -
Watir常用语法集
一.如何控制IE浏览器 1.1使用Watir工具,需要在脚本中加上 require 'rubygems' require 'watir' 1.2打开一个新的IE窗口 在创建的同时直接转到页面 ie = Watir::IE.start "http://www.maymay.test/login/" 或者 ie = Watir::IE.new ie.go转载 2012-10-19 17:35:55 · 821 阅读 · 0 评论 -
Watir与XPath的完美结合
Watir与XPath的完美结合 http://www.jointest.org/forum.php?mod=viewthread&tid=56 一.什么是XPath ? XPath是在xml文档中查找信息的语言,可用来在xml文档中对元素和属性进行遍历。XPath 使用路径表达式来选取 XML 文档中的节点或者节点集。Watir对xp转载 2012-10-19 15:23:54 · 2092 阅读 · 0 评论 -
Ways Available To Identify HTML Element
How? HTML Example Watir Example Comment :action ie.form(:action, /page/).click Used only for form element, specifies the URL where the form is to be submitted. :after? one two one i转载 2012-10-19 17:46:21 · 587 阅读 · 0 评论 -
FFI::NotFoundError: Function '_get_errno' not found in [msvcrt.dll]解决办法
案例: require 'watir'后,第一次执行 ie=Watir::IE.new报错如下: C:\>irb irb(main):001:0> require 'watir' => true irb(main):002:0> ie=Watir::IE.new FFI::NotFoundError: Function '_get_errno' not found in [msvcrt原创 2012-10-22 16:18:26 · 1396 阅读 · 0 评论
分享