Reputation: 23
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?
Upvotes: 2
Views: 3723
Reputation: 3837
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!
Upvotes: 1
Reputation: 1900
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.
Upvotes: 0