51Testing软件测试论坛

标题: Watir中启动IE的方式 [打印本页]

作者: Spark.lee    时间: 2009-9-23 14:35
标题: Watir中启动IE的方式
require 'watir'
require 'win32ole'
require 'watir/WindowHelper'
# 登陆

#ie = Watir::IE.start '163.com'
#ie = Watir::IE.start_window '163.com'
#ie = Watir::IE.new.goto '163.com'
#ie = Watir::IE.start_process '163.com'
#ie =Watir::IE.new_process.goto '163.com'
#ie = Watir::IE.new_window.goto '163.com'

=begin
ie = WIN32OLE.new('InternetExplorer.Application').
ie.visible=true
ie.navigate('http://www.google.com')
=end
#ie = Watir::IE.attach(:url,'')




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2