Python Forum

Full Version: Selenium and Flash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello -

Building a program that inputs data to a website using selenium.
Part of the site has an embedded flash widget, and that widget has some fields that I need to edit.
The rest of the site has been easy so far - I've been making edits based on the XPath of the element.
Unfortunately I cant figure out how to work with the flash portion of the site.

Any thoughts on how I can manipulate text fields / check boxes inside a swf?
You might get a quicker response thru the Selenium community or Adobe. :D
(Oct-10-2016, 07:07 PM)ATXpython Wrote: [ -> ]Part of the site has an embedded flash widget
Is not Flash dead yet :D
Quote:Any thoughts on how I can manipulate text fields / check boxes inside a swf?
There is a flash-selenium module.
It's not updated in for some years,so do not know if it work.
I have used Selenium to a lot stuff,but not tested with Flash.
Some link and code.
flash-selenium
Some code that use Flash-selenium.
from com.thoughtworks.selenium.FlashSelenium import FlashSelenium
from com.thoughtworks.selenium.selenium import selenium

url = "http://flashselenium.t35.com/colors.html"
browserType = "*firefox"

selenium = selenium("localhost", 4444, browserType, url)
selenium.start()
selenium.open(url)

flashApp = FlashSelenium(selenium, "coloredSquare")
flashApp.percent_loaded()
I thought the same thing when I went to that page... "Wait... what?! FLASH?!?!?! SERIOUSLY?!?!?"

Even if that module works, how would I be able to target individual elements within that flash widget?
Like I said, there are a number of check boxes and text boxes that need to be manipulated.
It seems like that would not be possible..