Selenium-Flex API 示例问题

发布于 2024-08-16 16:04:07 字数 470 浏览 5 评论 0原文

我正在尝试 selenium Flex API。按照主页上的说明使用 sfpi.swc 编译项目并在 bin 目录中获取生成的 selben.swf 并尝试使用 Selenium IDE 运行一些测试(assertFlexText)后,出现以下错误:

[error] Function getFlexText not found on the External Interface for
the flash object selben

我尝试了其他几个Flex 测试并收到与上述类似的错误消息。

出于某种原因,我认为通过 flex builder 中的项目自动构建生成的 selben.swf 不是所需的,尽管在包含 sfpi.swc 后它没有表明任何构建问题。

有什么想法吗?

I'm trying the sample demo of selenium flex API. After following the instructions on the main page for compiling the project with sfpi.swc and taking the generated selben.swf in bin directory and trying to run some test(assertFlexText) using Selenium IDE, I get the following error:

[error] Function getFlexText not found on the External Interface for
the flash object selben

I have tried several other flex tests and got error messages similar to the one mentioned above.

For some reason I believe that the generated selben.swf through the automatic build of project in flex builder is not the desired one, though it didn't indicate any build problem after including sfpi.swc.

Any idea?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眉黛浅 2024-08-23 16:04:07

我在我的项目中使用 SeleniumFlex Api 和 SeleniumIde ,结果非常好,但使用的是我自己的版本。您的错误可能是因为在编译时未包含 SeleniumFlexApi 的库( -include-libraries "libs\SeleniumFlexAPI.swc" )。

之后,您可以使用 SeleniumIde 启用捕获和重播更改主要源(阅读此 post)并将 user-extensions.js(在 SeleniumFlexApi 项目中)与 SeleniumIde 用户选项一起使用。这真的很容易。

通过这些更改,您可以在 Firefox(v 3.06 或次要版本)中捕获和重放,之后,如果您使用 java,您可以使用 Flex-UI-Selenium、Flash-Selenium 与 SeleniumRC 进行集成测试。

我希望这些信息有用。如果您有任何问题请告诉我。

I use SeleniumFlex Api and SeleniumIde for my projecy with excellent result BUT using my own version of each of one. Your error maybe is for not include the lib of SeleniumFlexApi in the compile time( -include-libraries "libs\SeleniumFlexAPI.swc" ).

After that u can enable capture and replay with SeleniumIde change the main source (read this post) and use the user-extensions.js (in the SeleniumFlexApi project) with the SeleniumIde user option. Its really easy.

With these change u can capture and replay in firefox (v 3.06 or minor) and after that, if u use java, u can use Flex-UI-Selenium, Flash-Selenium for ur integration test with SeleniumRC.

I hope this information be usefull. I u have any question let me know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文