You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Original issue reported on code.google.com by
slug...@gmail.com
on 5 Oct 2009 at 6:32The text was updated successfully, but these errors were encountered: