Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selenium and Flash
#1
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?
Reply
#2
You might get a quicker response thru the Selenium community or Adobe. :D
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
(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()
Reply
#4
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..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  enable flash using selenium chromedriver Fre3k 1 4,281 Nov-27-2020, 12:15 PM
Last Post: JellyCreeper6
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,621 Nov-03-2017, 08:41 PM
Last Post: metulburr
  Flask Flash Messages Blank Leaf 2 5,712 Oct-16-2017, 10:19 PM
Last Post: Leaf
  Django or Flash for a would be freelancer? davinci 2 4,668 Jul-21-2017, 07:03 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020