2009-12-29 31 views
4

我想尝试Flash-Selenium与python驱动程序,但我有一些关于可用的python扩展的问题,它似乎老化,没有关于如何使用它的例子...有没有人是谁使用它?有关如何使用它的任何示例?Flash-Selenium和Python

回答

1

实施例从FlashSelenium页采取:

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()