watir处理弹出框
- 作者 firedragonpzy
- 1 八月, 2012
- 暂无评论
本文为firedragonpzy原创,转载务必在明显处注明:
转载自【Softeware MyZone】原文链接: http://www.firedragonpzy.com.cn/index.php/archives/479
require "rubygems" require 'watir' require 'win32ole' #coding=utf-8 autoit = WIN32OLE.new('AutoItX3.Control') ie=Watir::IE.start("http://localhost:xxxx/xxxx") ie.link(:url, 'http://localhost:xxxx/xxxx/2').click_no_wait sleep(3) #autoit.Send("{TAB}") #取消 所用 autoit.Send("{ENTER}")