Open GoogleCodeExporter opened 8 years ago
note how FlexUISelenium uses FlashSelenium, and how FlashSelenium uses the
SFAPI's
JavaScript... by using both a FlexUIApp and a FlashApp object concurrently, you
should be able to achieve your desired results.
http://code.google.com/p/flex-ui-selenium/source/browse/#svn/trunk/java/flex-ui-
selenium/src/com/thoughtworks/selenium
http://code.google.com/p/flash-selenium/source/browse/#svn/trunk/java/flashselen
ium/src/com/thoughtworks/selenium
http://code.google.com/p/sfapi/source/browse/#svn/trunk/js_extension
Original comment by qunyb...@gmail.com
on 17 Nov 2009 at 12:49
slugics,
here is a working example in Java, note code-snippets are from various locations
Selenium selenium = new DefaultSelenium("localhost", 4444, "*iexplore", BASE_URL);;
selenium.start();
FlashSelenium flashApp = new FlashSelenium(selenium, "AdmissionApp");
FlexUISelenium flexApp = new FlexUISelenium(selenium, "AdmissionApp");
...
DemographicUtils.populateName(flexApp, flashApp);
...
public static void populateName(FlexUISelenium flexApp, FlashSelenium flashApp)
throws InterruptedException{
String [] arr = {"salutation", "Mr."};
flashApp.call("doFlexSelectComboByLabel", arr );
if(flexApp.readFrom("lastName").equals(""))
flexApp.type("Lewis").at("lastName");
if(flexApp.readFrom("firstName").equals(""))
flexApp.type("Eddie").at("firstName");
}
alternately you could extend the available FLEXUISelenium java object - or
better yet
contribute to the codebase for the next version!
cheers,
qunybble (elewis)
Original comment by qunyb...@gmail.com
on 17 Nov 2009 at 1:05
Also, I use FlexMonkey to help determine some of the calls needed. then program
the
code using Selenium flex, etc.
Original comment by anthonyr...@gmail.com
on 3 Dec 2009 at 3:20
Original issue reported on code.google.com by
slug...@gmail.com
on 5 Oct 2009 at 6:32