0
有谁知道使用WatiN脚本Flash脚本的方法吗?Internet Explorer - 使用WatiN库实现闪存自动化?
我需要一种方法将任意击键发送到Flash应用程序。我可以用代码来登录像这样:
ie.TextField(Find.ById("email")).TypeText(username);
ie.TextField(Find.ById("password")).TypeText(password);
我在寻找类似:
ie.FlashObject(Find.ById("flash-object")).TypeText("123");
或者,如果焦点被设置为浏览器,闪存响应,所以自由文本会工作:
ie.FreeText.TypeText("123");
目前,我使用SendKeys()的Windows窗体应用程序,它不是很健壮。
谢谢。
Flash可以自动执行吗?如果是这样,这应该是有趣的。 – Geo 2009-07-14 08:13:37
我使用AutoItX库(http://www.autoitscript.com/autoit3/)结束,因为WatiN似乎无法访问Flash组件。 – 2009-07-14 21:23:44