Selenium and Flash - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Selenium and Flash (/thread-427.html) |
Selenium and Flash - ATXpython - Oct-10-2016 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? RE: Selenium and Flash - sparkz_alot - Oct-10-2016 You might get a quicker response thru the Selenium community or Adobe. :D RE: Selenium and Flash - snippsat - Oct-10-2016 (Oct-10-2016, 07:07 PM)ATXpython Wrote: Part of the site has an embedded flash widgetIs 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() RE: Selenium and Flash - ATXpython - Oct-10-2016 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.. |