watir_WatirMaker简介-录制基于Ruby的Watir

watir

watir

Watirmaker01

Well, my wife is out of town and as usual, I can't sleep at all. We've been married 5 years and we just can't sleep separate. This is both a good and a bad thing. Bad because it's 3:23am, good because I felt compelled to write some software.

好吧,我的妻子不在城里,和往常一样,我根本无法入睡。 我们已经结婚5年了,我们无法分开睡觉。 这既是好事又是坏事。 不好,因为是凌晨3:23,很好,是因为我不得不写一些软件。

I've been digging Watir lately and have introduced it around work. The question that everyone keeps asking is "ok, so how do I automatically record Watir scripts" and the answer has been, to the best of my knowledge, "um, you don't. Hopefully someone will do something soon."

我最近一直在研究Watir,并在工作中进行了介绍。 每个人都在问的问题是“好吧,那么我如何自动记录Watir脚本”,据我所知,答案一直是“嗯,你不知道。希望有人尽快做些事情。”

I got tired of waiting. I started at 10pm and now it's 3:25 and Conan is being repeated. So, here's a screencast of my results after 5.5 hours. It's very rough but it supports text boxes, buttons, links, select lists (kinda), radios and checkboxes. It doesn't support frames, iframes, the back button, divs, tables, etc yet. It's also very sloppy code, so I think what I'm going to do is get a few volunteers in the Watir community who are also .NET savvy to help me out and I'll try to release it in a week or so.

我厌倦了等待。 我从晚上10点开始,现在是3:25,柯南正在重复播放。 因此,这是5.5小时后我的结果的截屏视频。 它非常粗糙,但它支持文本框,按钮,链接,选择列表(种类),单选框和复选框。 它尚不支持框架,iframe,后退按钮,div,表格等。 它的代码也很草率,所以我想我要去做的是Watir社区中的一些志愿者,他们也都精通.NET,可以帮助我,我将在一周左右的时间内发布它。

There's some really crazy stuff going on in here with UCOMIConnectionPoint in order to get "IE on a string." Also, a lot of things are being caught on the onfocusout event. I also need to understand if HTMLDocumentEvents2 is the right object model to be watching.

为了使“ IE在字符串上”, UCOMIConnectionPoint发生了一些非常疯狂的事情。 另外,onfocusout事件还涉及很多事情。 我还需要了解HTMLDocumentEvents2是否是正确的对象模型。

If there's interest, we shall see. Interested? Here's the screencast of WatirMaker 0.1. I'm off to bed.

如果有兴趣,我们将会看到。 有兴趣吗这是WatirMaker 0.1的截屏视频。 我要睡觉了。

翻译自: https://www.hanselman.com/blog/introducing-watirmaker-recording-for-rubybased-watir

watir

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值