最新文章列表

watir

  gem update --system gem install watir   Successfully installed watir-5.0.0Installing ri documentation for commonwatir-4.0.0Installing ri documentation for websocket-1.2.1Installing ri documentat ...
michael_roshen 评论(0) 有281人浏览 2015-03-04 17:37

Watir的操作使用

与网页交互(Interacting With a Web Page) 当使用Watir开发测试脚本的时候,通过给网页上的对象发送消息来与之交互。 Watir 语法(Web Application Testing in Ruby) # watir的安装 watie的安装请查看 -> Ruby library的安装 # 使用Watir工具,需要在脚本中加上 require 'watir' # 创建 ...
shuaigelingfei 评论(0) 有4217人浏览 2014-04-06 23:10

Ruby watir安装及版本兼容解决方法

  1.安装Ruby,http://rubyforge.org/frs/?group_id=167,官网推荐安装1.8.6版本,下载ruby186-26.exe,安装,安装选项全部默认。 2.更新Rubygem,网速好的情况下可用 ...
hunaifei2008 评论(0) 有1727人浏览 2013-12-11 13:12

webdriver操作页面元素报错Element is not currently visible and so may not be interacted w

前段时间用webdriver写自动化测试的脚本的时候,遇到了如下问题:页面上的元素可见,而且用exists?判断返回结果为:ture。 但是在对页面元素操作的时候,却报错了:Element is not currently visible and so may not be interacted withat。 后来发现了问题所在,以为弹出窗口等原因,页面上肯定不只一个当前要定位的元素。多见于:确认 ...
yxchen51 评论(0) 有1951人浏览 2013-08-23 16:34

watir-webdriver源码阅读

module Watir class Browser def initialize(browser = :firefox, *args) case browser when Symbol, String @driver = Selenium::WebDriver.for browser.to_sym, *args when ...
Goldice 评论(0) 有1047人浏览 2012-11-22 20:27

ubuntu下 使用 watir

sudo apt-get install firefox sudo aptitude install xvfb sudo gem install watir-webdriver --no-ri --no-rdoc sudo gem install headless require 'watir-webdriver' require 'headless' Headless.ly do   ...
xulei3244 评论(0) 有796人浏览 2012-08-07 11:11

ruby+watir环境准备小结

ruby+watir环境准备小结 ruby watir 环境准备 1.下载ruby安装包 http://rubyforge.org/frs/?group_id=167 ,可下载压缩包直接解压并设置环境变量即可;也可下载exe安装 2.调整ruby下载源,gem source --help查看相应参数。gem source -r http://rubygems.org 添加源gem source - ...
flying_dream 评论(0) 有1134人浏览 2012-05-20 18:52

watir 火狐浏览器

#coding:gbk require 'watir-webdriver' b = Watir::Browser.new :firefox b.goto 'http://ckeditor.com/demo' [url]http://17test.info/?page_id=561[/url] 所见即所得编辑器 有两种方法可以通过Watir-WebDriver向所见即 ...
fireDragonpzy 评论(0) 有1139人浏览 2012-05-16 16:57

watir sites

http://www.ltesting.net/ceshi/open/kygncsgj/watir/
fireDragonpzy 评论(0) 有842人浏览 2012-05-05 16:13

watir的2.0.4版本的中文字符问题

在text_field输入中文后,若多于一个,文本框中的值只是显示一个,例如,你在文本框中输入:张杰,但是我们跑起脚本的时候,它只是输入了张,请修改:C:\Ruby192\lib\ruby\gems\1.9.1\gems\watir-2.0.4\lib\watir路径下的win32ole.rb文件中的WIN32OLE.codepage = WIN32OLE::CP_UTF8为WIN32OLE.cod ...
fireDragonpzy 评论(0) 有1084人浏览 2012-04-21 10:43

watir处理弹出框

require "rubygems" require 'watir' require 'win32ole' #coding=utf-8 autoit = WIN32OLE.new('AutoItX3.Control') ie=Watir::IE.start("http://localhost:xxxx/xxxx") ie.l ...
fireDragonpzy 评论(0) 有1019人浏览 2012-04-17 11:55

Adding security exceptions in Firefox

原文链接:http://stackoverflow.com/questions/5589139/adding-security-exceptions-in-firefox Question:   I have a script running watir-webdriver(using Firefox 4.0) that needs to access a web page that Fire ...
lilingjay 评论(0) 有936人浏览 2012-03-31 23:18

Selenium-webdriver系列教程(11)————使用jquery辅助进行测试

Jquery是当下比较流行的1个js框架,通过使用webdriver的execute_script方法,我们可以将jquery库结合到自动化测试中去。 结合jquery进行自动化测试的思想是这样的:首先将jquery的源码读到1个string中去,然后使用executescript执行该string。执行完毕后我们就可以通过executescript方法来调用jquery库了。 下面的html代 ...
nbkhic 评论(0) 有988人浏览 2012-03-19 22:54

关于watir selenium和webdriver soda cucumber

watir和selenium在自动化测试web测试领域强硬增长。这一趋势日渐强势,各种搭配和框架丛生。 简单的搜集,我看到了cucumber配合watir的框架,看到例教,和类似的测试集成框架,也看到分布式测试框架 简单使用: 安装 gem install watir-webdriver require 'watir-webdriver' b = Watir::Browser.ne ...
夜鸣猪 评论(0) 有3774人浏览 2011-11-29 01:34

走在自动化测试的道路上

大纲:    自动化测试的现状    自动化测试的发展     1. 包含的领域     2. 发展的思路     3. 观点: 自动化测试是一种软件开发交付过程        ...
ruby_windy 评论(0) 有1839人浏览 2011-11-15 03:12

watir webdriver使用分享

工作中用到watir,做web的自动化脚本。以前的自动化脚本是watir库的,只支持IE。 现在为了支持多浏览器,search了下,发现可以用watir-webdriver。它支持IE,firefox,chrome。   为了使用webdriver,必须对以前的脚本做些更改: 1. require 'watir' 改为require 'watir-webdriver' 没有了watir库 ...
fs_fly 评论(0) 有5080人浏览 2011-11-04 10:52

Selenium-webdriver系列教程(7)————如何处理alert和confirm

以前使用watir 1.6x 的时候处理页面javascript弹出的alert和confrim窗口时必须借助autoit工具来辅助执行,就像中国男足职业联赛中高价聘请外援一般。 在selenium webdriver中,confirm和alert的处理再也不需要借助任何第三方工具了。 下面的html页面上有1个名为click的button,点击该button后就会弹出1个alert窗口。 & ...
nbkhic 评论(0) 有1419人浏览 2011-10-20 20:15

Selenium-webdriver系列教程(5)————如何定位frame中的元素

在web ui自动化测试中,frame一直是令人头痛的问题,就像上班必须挤公车坐地铁一般,frame的问题总是令人气闷纠结为之黯然神伤。 以前在使用watir 1.6x的时候,frame也是颇为棘手的一个问题。不但要照本宣科的进行一系列的设置,而且在进行实际代码编写的过程中会遇到各种奇奇怪怪的问题。frame就像中国男足的后防线,问题多多难以解决。 selenium webdriver处理fra ...
nbkhic 评论(0) 有2151人浏览 2011-10-19 08:56

Selenium-webdriver系列教程(3)————如何执行一段js脚本

有时候在进行自动化测试时需要在页面上执行一段js脚本,这个时候就需要用到execute_script方法了。 require 'rubygems' require 'selenium-webdriver' dr = Selenium::WebDriver.for :ie url = 'http://www.soso.com' dr.navigate.to url sleep 3 js ...
nbkhic 评论(0) 有1228人浏览 2011-10-18 21:54

最近博客热门TAG

Java(141747) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics