Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you access Controls like ComboBox, Lists and so on. #6

Open
GoogleCodeExporter opened this issue Jul 28, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

I can only do "type" and "click" on my flex application. How can I do select 
and other events on controls like Lists, ComboBoxes etc...


Original issue reported on code.google.com by slug...@gmail.com on 5 Oct 2009 at 6:32

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant