views:

705

answers:

2

Hello,

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?

+1  A: 

Hi Khel 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.

ricdex
I kinda did everything possible to run version 0.2.6 of the API http://code.google.com/p/sfapi/ but I couldn't manage it.....
khelll
Im talking about this selenium flex api http://sourceforge.net/projects/seleniumflexapi/ without automation framework.
ricdex
A: 

I really envy people who can use SeleniumIDE for flash applications.

Can you please, give me some hints - how to start? I have compiled SeleniumFlexAPI.swc into my app. I've downloaded the latest and greatest version of selenium IDE - now what?

I can see the flex related commands in the IDE's dropdown - don't know how to use them.

Appreciate any help!

Diana Tzinov