2009-12-29 79 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()