2

I'm using Selenium with Python to test a web application. The app has a Flash component that I'd like to test. The only references I've seen to using Selenium with Flash refer to Flash-Selenium which hasn't been updated in several years. Is testing Flash with Selenium even possible?

2 Answers 2

1

I have been in your situation before. The truth is that this is hard to accomplish with selenium. I've bookmarked

http://inventwithpython.com/blog/2014/12/17/programming-a-bot-to-play-the-sushi-go-round-flash-game/

for the next time I run into this problem, but I have not actually needed it since then. But I think there is a solution using that link + selenium.

Would love an update if you find a way to make this work!

Sign up to request clarification or add additional context in comments.

2 Comments

This link is down now, currently I'm using the cached version. webcache.googleusercontent.com/… just if anyone else would be reading this
there is also this cache, which may be more permanent (although the original link is live atm)
0

As long as you have access to the flash source code it is possible (although it requires some work). To do that you have to expose the flash actions you want to test using selenium. This requires that you make the methods available in Flash to execute via Javascript. Once you can do that, you should be able to automate the process with using selenium's ability to execute javascript.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.