Flash-Selenium 与 Python
我想用Python驱动尝试一下Flash-Selenium,不过我对现有的Python扩展有些担心,因为它看起来有点老旧,而且没有使用示例……有没有人正在使用它?有没有什么使用的例子呢?
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()