To automate flex using selenium you have to follow these steps :
- You have to download selenium flex API .
- You will get a SeleniumFlexAPI.swc file here.
a. Now add this SeleniumFlexAPI.swc file into your libs folder (This folder would be in your project or check your repo and search libs folder).
b. After adding that file in libs folder now you will have to compile your code so that SeleniumFlexAPI.swc file can include in code , for compiling you need to add lib path in flex compiler like this :
-include-libraries "libs\SeleniumFlexAPI.swc"
Now Compile the code.
Next point 3 is in the first comment please follow that after executing these above steps.