Internet Explorer - 使用WatiN库进行Flash自动化?

时间:2022-02-15 17:02:50

Does anyone know of a way to script flash objects using WatiN?

有没有人知道使用WatiN编写flash对象的方法?

I need a way to send arbitrary keystrokes to a flash application. I'm able to login with code such as this:

我需要一种方法来向Flash应用程序发送任意键击。我可以使用以下代码登录:

ie.TextField(Find.ById("email")).TypeText(username);
ie.TextField(Find.ById("password")).TypeText(password);

I'm looking for something like:

我正在寻找类似的东西:

ie.FlashObject(Find.ById("flash-object")).TypeText("123");

Or if focus is set to the browser, flash responds, so free text would work:

或者,如果焦点设置为浏览器,则闪烁响应,因此*文本将起作用:

ie.FreeText.TypeText("123");

Currently I'm using a windows forms app with SendKeys() and it's not very robust.

目前我正在使用带有SendKeys()的Windows窗体应用程序,它不是很强大。

Thanks.

1 个解决方案

#1


There is Ruby library called FlashWatir. Not exactly what you were looking for, but close.

有一个名为FlashWatir的Ruby库。不完全是你想要的,但接近。

#1


There is Ruby library called FlashWatir. Not exactly what you were looking for, but close.

有一个名为FlashWatir的Ruby库。不完全是你想要的,但接近。