Any selenium-webdriver (in Ruby) Flex Pilot examples out there?

135 views
Skip to first unread message

Ryan Thomás Correía Ortega

unread,
Dec 7, 2011, 8:27:05 PM12/7/11
to flex-pilot
I have poked around looking for good examples of Flex Pilot working
with selenium-webdriver and have been striking out. Anyone out there
have an example Ruby test they can share?

Thanks!

--Ryan


John

unread,
Feb 8, 2012, 6:15:51 PM2/8/12
to flex-...@googlegroups.com
The flexpilot integration is via the WebDriver so the low level test code looks something like
driver.execute_script("return document.#{theIdOfTheFlashObjectElement}.fp_click({chain: \"#{theChainValueShownInSeleniumIDERecorder}\"});")
where fp_click is one of the methods provided by flex-pilot when the flash application calls FPBootstrap.init

I'm working with Groovy/Java, but that's relevant to the usage of Selenium/WebDriver, not flex-pilot. Your WebDriver scripts need to include Javascript that executes on the browser to invoke flex-pilot.
Reply all
Reply to author
Forward
0 new messages