4

我想用 python 驱动程序尝试Flash-Selenium,但是我对可用的python扩展有些担心,它似乎已经过时了,并且没有关于如何使用它的示例......有人在使用它吗?关于如何使用它的任何示例?

4

1 回答 1

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()
于 2011-09-25T22:32:28.383 回答