Using UI Automation Framework to interact with Flex applications

Hi all,
I created a small flash app using Flex builder 4.
I am writing a tool to interact with flash applications using UI Automation Framework which is similar to UI Spy. I've read in so many forums that accessibility can be done using UI Automation or MSAA.
Using the tool, I am able to get all the fields that are present in the application. (button, text, edit fields etc). Now, I want to use InvokePattern on buttons from my tool so that, if I click "Invoke" in my tool, the associated button will be clicked in the flash app. Here, I find no issues to do anything.
But, if there is a textinput field on the flash application and I use ValuePattern of UI Automation to set some value in the field using SetValue(), then I am getting
"System.InvalidOperationException"
even when I tried simple SetFocus() on to that field, I am getting the same exception Looks like, I cannot interact with flash text fields in the same way I do with other window's fields.
I used UISpy and other tools to see if they are doing any better with setting values on a text field. But, they too failed with same exception.
Can someone tell me why this is failing? Does flex/flash support UI Automation to this extent? Are there any examples or links that can help me here?

@riatest Thanks for the info.
I downloaded flex sdk to see if there is anything that will help me. But, In flex sdk, I cannot find anything that would ease my path. I want to stick to developing in C# to talk to Flash applications. What is the best way to proceed? Are there any sdks that I can download and use for C# development to interact with the flex controls? What is the way to go? I seem not to find any good hits in the web as well
Thanks
Sailesh

Similar Messages

  • Tool or framework to interact with OTM and Logistic Service Provider(LSP)

    Hi,
    We are using Oracle Transportation Management (OTM) service for the transportation management. But to interact with the LSP(logistic service provider) We need some tool.
    Please suggest me some tool or stable framework that can interact with OTM and Logistic Service Provider, just like Apache Camel
    if you have any any idea please guide me on this, it is very urgent .
    Edited by: 902943 on 13-Mar-2013 23:36

    @riatest Thanks for the info.
    I downloaded flex sdk to see if there is anything that will help me. But, In flex sdk, I cannot find anything that would ease my path. I want to stick to developing in C# to talk to Flash applications. What is the best way to proceed? Are there any sdks that I can download and use for C# development to interact with the flex controls? What is the way to go? I seem not to find any good hits in the web as well
    Thanks
    Sailesh

  • Can Director Interact With Other Applications?

    Hello,
    I am a CBT/E-Learning Developer looking for a way to author
    Guided Help. I am thinking of how to develop interactive tutorials
    that, instead of using screenshots of an application, interact with
    the application itself.
    For instance, let's imagine that a person is working in MS
    Word and doesn't know how to save a file. He can click the icon for
    the "Saving A File" lesson, and a caption displays on top of MS
    Word that reads something like "Click FILE", along with some type
    of indicator of the FILE button, such as an outline, highlight,
    arrow, etc. The user clicks FILE, the File Menu drops down in MS
    Word, and the next step of instructions is displayed. In this way,
    the usre is guided through the steps of saving a file as he
    actually performs the task in the software.
    Can Director create this type of thing?
    Thanks a lot,
    Mike

    Hi Chunick,
    Thanks for replying. I used MS Word as just an example; the
    type of software I'm wanting to use this for is police records
    management software. I've been doing the interactive simulation
    tutorials for them since 1999, using multimedia authoring tools
    Demoshield and Opus Pro, and demo authoring tools RoboDemo and Demo
    Builder. However, I wanted to get away from interactive tutorials
    for 3 reasons:
    (1) My client's software is frequently updated, and keeping
    up with taking new screenshots is a hassle.
    (2) I'm of the opinion that "at the moment of need", process
    embedded "guided help" in the actual application is a much more
    useful form of training than working through a simulation.
    (3) It will greatly help my client's support staff and
    training staff
    I've been researching process embedded e-learning and guided
    help for almost a year now. I've looked at everything from
    multimedia authoring to macro software. I even found two programs
    that do exactly what I want, but they are very very expensive, much
    more expensive than Director.
    Thanks for the tip on Hook Xtra; I'll check that out. Last
    night I found an xtra called MasterApp, which may also do what I
    need. I appreciate the concern about the difficulty of programming,
    and I'm not a programmer (except HTML, and we all know how easy
    that is). But I'm in this for the long haul, and would be using it
    for potential new clients, not just my current client. I love
    learning new software, and I have a membership to the IEEE Computer
    Society, which gives me over 1300 online e-learning courses I can
    take, including Director.
    Thanks again for the lead!
    Mike

  • One web application - interact with many application

    I need to create web application that will be interact with different applications by different protocols. On the input of this application will be different xml files (commands).The input must be implements as stream input (something like IBM WebSphere Business Integration Connect)
    This web application must be consist from differents modules. Every module do the concrete task. E.g. with file1.xml - web application connect with MS Outlook. With file2.xml - web application connect with some web service and so on.
    What kind of java web technology I can use to create this web application?
    Thanks.

    You can use web service to accept input XML for your application and remaining technology depends upon the nature of target system and your work involved. For example, to consume target system web service you can think of using JAX-WS.

  • Does siri, Does iPhone 4s Siri interacts with "whatsapp" application.

    Does siri, Does iPhone 4s Siri interacts with "whatsapp" application.

    Yes, you can have white background with black text.
    Settings > General > Accessibility > Invert Colours
    Note: the settings is global not just for Siri.

  • Can i use flash for ui and interact with c++ builder for the rest

    i know flash can be used in c# in visual studio but i dont remember a thing of this interaction.
    is it possible to interact with c++ builder and how?
    the scenario is simple
    use flash for UI (showing-viewing data) maybe for a kiosk or something without mouse simply with touch input,
    use c++ builder for the rest , database connection data proccessing etc
    any info will be greatly appreciated
    thanks

    I would advise proper punctuation and grammar on a public forum, but to answer your questions, yes, yes you can! Flash can be used to produce any commercial imagery or animations for the purpose of making profit, as long as you have a valid license you purchased from Adobe. You bought it, you can use it for whatever you want.
    By "book", I assume you mean the "tutorial" book series made by Adobe? If so, the name of the series is "Classroom in a Book", there's one for each versions of Flash. Personally it hasn't been of much use and I would advise simply practicing by yourself and getting familiar with the tools. Look for online tutorials and publicly available projects and see how they work.

  • How to use NI motion library to interact with the hardware in C#?

    i want to interact with a motor connected to my system using ni motion board and ni motion library. Can anyone suggest how to configure velocity and acceleration settings so that the motor can be rotated ?
    Thanks in advance
    Ritesh

    Ritesh,
    you should start by configuring and testing the motion control setup in MAX. In C# you can use the NI-Motion C API. Please refer to the documentation (NI-Motion C Reference help) and the shipping examples (C:\Program Files\National Instruments\NI-Motion\Documentation\Examples\NI-Motion Help\C).
    Kind regards,
    Jochen Klier
    National Instruments

  • Web interaction with client application

    Hi all,
    I have self taught myself Java over the last 4 years on and off.
    I am in the mid stages of developing an MRPII application with various modules. These modules are effectively JTabbedPanes within JInternalFrames. The JInternalPanes are within a JDesktopPane which also has JTabbedPanes.
    This enables me to have departmental tabs at the top of my app and module functions at the left hand side, dependant of which departmental tab is selected.
    I have created a class that connects to MySql and can do various functions which I then can derive specific MRPII classes.
    I have a desktop PC which I have MySql configured as a server and a laptop which is configured as a client. Both machines run WindowsXP and my router is a linksys.
    With this setup both machines can check inventory, take orders, produce purchase orders, create customers & vendors etc....
    My next step is to try and incorporate a web component into this.
    My ideal goal is to have a database that is set up and hosted on the web and works in the same way as my home network. This would enable me to deploy this application and configure the ODBC data source to point to an IP address. Is this possible and if so how would I go about it.
    The other option is to create web pages with forms that interact with my local server. If this is the better option, I am unsure whether I should learn about servlets or possibly XML, as all I have learned so far is about applications.
    Your guidance would be greatly appreciated.
    thanks
    Jim.

    I wouldn't let client applications connect to a database directly. What if you make a change to the database in order to fix a bug for example, that would mean rebuilding the clients and redistributing them and in the mean time any old client is most likely broken.
    I would let the server communicatie with the database locally and expose either an XML-RPC or a SOAP connection to clients. This makes your framework extendible and abstract, all you do is implement SOAP methods on the server that your clients will invoke. As long as the response of such a call never changes you do not need to change your clients. And who knows, you may even use additional data sources (other databases for example) on your server, your clients will never have to know about it.
    If you want to learn about SOAP, check out Apache axis.
    http://ws.apache.org/axis/index.html

  • Should I use a MVC framework for an large RIA application

    The book of "Adobe Flex 3 Training from the Source" does not
    talk about any MVC frameworks in its
    eCommerce example. I think Flex's events, functions, and mx
    components are MVC already. Do they have to be in separate file to
    call them MVC? I do not find that core Flex is harder to read and
    understand than using a MVC framework. I think using the MVC
    framework would hurt the performance because too many additional
    events are dispatched. Any comments?

    MVC is one design pattern that is pretty darn useful for a
    lot of applications, IMHO. There are frameworks that more or less
    force you to think in MVC pattern terms, like Cairngorm and
    PureMVC. But you certainly don't need to use a framework to create
    an overall design pattern of model, view, controller. However, it
    sure can make it easier if you're doing a large project. The book
    you're talking about is a good example. They don't use a framework
    but they have tried to use a form of MVC in the way that they
    implement all the components to ensure things are loosely coupled.
    As far as hurting performance, I'm no expert but there are so
    many thousands of events occurring all the time in Flex that you
    might actually enhance performance if you take more control by
    using custom events of your own creation within a well designed
    framework.
    I'm a fan of the Mate because I get it and it doesn't impose
    a strict structure like Cairngorm. I don't have a whole lot of
    experience with OOP (though I'm sure getting it thanks to this
    forum). Many others have their own opinions and will surely
    recommend other frameworks. However, the bottom line is that if
    you're doing a big project, I would think it would be a huge help
    to at least have a conceptual framework approach in your mind, if
    not part of the code.
    Here's a video intro to Mate
    http://tinyurl.com/mateintro

  • Create a folder in desktop with flex application?

    Hi,
    i want to create and save a folder in my computer using my flex application, so is there an actionScript function to do this?
    Thank you,
    Celine

    I do not believe this is possible to do with a browser based application.
    But, if you run your app in AIR you can do use the Flash.filesystem
    class to create a directory:
    http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html

  • Firefox has trouble initiating, and when it finally does, every time I attempt to interact with the application it stops responding.

    Firefox won’t initialize: I can open any program on my computer except for Firefox so it isn't that my computer is slow. It doesn't open at all no matter how long I wait. I've left the room and let the computer run before and it still wasn’t running when I came back. After a few clicks it finally it comes up, and I have to wait because I’ve clicked multiple times so of course it's going to open multiple times. When I'm online after successfully closing all but one Firefox window so that I don't crash my poor laptop, every time I attempt to interact with the program via clicking a link, opening a new tab, or typing something into the URL bar, the program freezes and goes into the not responding stage. Rarely, an unresponsive script message will pop up.

    See:
    * http://kb.mozillazine.org/Preferences_not_saved
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I have a macbook pro from 2009 and the software is 10.5.8 how do i update it so i can have more interaction with the applications

    i have a macbook pro from 2009 and the software is 10.5.8 how do i update it so i can have more interaction with the applications

    Note some programs may not work with Lion or later
    Upgrading to 10.7 and above, don't forget Rosetta!

  • Use of Database  Studio Community Edition with SAP applications

    I am using SAP ECC6.0 on MaxDB 7.6.04.012 running on Linux x86_64.
    For database admin, and adhoc sql queries, I am currently using Database Studio 7.7.04.26, running on Windows XP.
    I have had one or two issues with Database Studio, and I've been looking for a more recent version to Install.
    There seems to be a more recent version in the Community Editions download area, but this says:
    "This package is not for use with SAP applications. For that purpose, refer to the Download Area in the Service Marketplace"
    I have not been able to find Database Studio as a separate download in the SSM Download area.
    What is the reason for this comment about the Community Edition? Can I use this version of Database Studio? and if not, where can I get the equivalent for SAP applications?
    Thanks
    Chris

    I installed MaxDM (32bit) and MaxDB Studio which I can open. And I habe also a connection to Max DB but I can´t see any application for examle. How can I find these applications. I hope there are one!?
    Have you checked the documentation Demo Data for the SQL Tutorial ?
    There is a demo schema available for MaxDB: the HOTEL schema.
    It can be loaded to any MaxDB by running:
    load_tutorial
    in dbmcli or via the context-menu (right-mouse-button) menu in DB Studio -> "Load Tutorial..."
    After the tutorial is loaded you can logon via user "MONA" and password "RED".
    regards,
    Lars

  • Best way to use Sun Web Server connection pooling with Web Application?

    I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
    As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
    Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
    Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
    Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
    Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
    Any tips?
    dailysun
    P.S. For instance, in my tool, I call the interface class in this manner:
    Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
    getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.

    I have a number of applications that run Oracle and MySQL queries via Sun Web Server 6.1. I use the Web Server's built-in connection pooling, which works fairly well.
    As an interface with the connections I receive from the Web Server, I use a class, which (1) accepts the SQL and database name from a tool, (2) Opens the connection, runs the SQL, closes the connection, (3) puts the content of the result set into a Vector of Hashtables, (4) returns that Vector to the tool.
    Why do I use this Vector? That way, in my applications, I don't have to deal with opening connections (or getting them from the pool) and I don't have to worry about closing connections, because that's done automatically by the interface class.
    Is this a dumb approach to use? I'm a bit paranoid about open DB connections, because we have had a number of problems where connections would not be closed, go stale in oracle, and clog up the database resources.
    Can you suggest a better way to (1) smartly control opening and closing connections, and (2) enabling fast database access?
    Sorry, but given this Java/Sun Web Server double topic, I'm going to post the same message on the Web Server board.
    Any tips?
    dailysun
    P.S. For instance, in my tool, I call the interface class in this manner:
    Vector results_v = Database.getSelect("SELECT * FROM TEST","database1");
    getSelect uses the first string as the SQL and the second string as the jndi name of the Web server's database resource. getSelect does all the context stuff to get a connection from the pool, runs the SQL, puts the resultset into a Vector of Hastables (where each row is one Hashtable), and returns the Vector.

  • Using flash debugger player with Flex application

    I am building my first Flex app and have run into a problem that I can't figure out.  When publishing a .swf in Flash I sometimes run the debugger to generate the swf.  When I do so, I can view the swf through my browser (using the debugger version of flash player) and the exceptions that are thrown include a stack trace (complete with line numbers) of any error that occurred.  I have tried running the debug compiled version of my swf from Flex and it does not show the line numbers.
    Is there some way to do this?  I have several thousand lines and the location of the error is tough to figure out becuase it is an instance where I am casting an event to the wrong type through my typed params for a function.  So, for example, I am dispatching a MouseEvent but the listener function has a typed parameter of Event instead.
    Can someone please point me in the right direction?
    Thanks.

    Thanks for the feedback.  Our debugger documentation definitely needs to be refreshed.  The PPAPI debugger on Chrome is even more complex.  I blocked some time out on my calendar for Friday to try and get these revised.

Maybe you are looking for

  • How to install Thunderbird and Lightning Extension to StarOffice 9

    I just purchased StarOffice 9, read the entire documentation, including the "Getting Started" PDF file. Looked all over Sun.com and nowhere can I find how to install the Thunderbird and Lightning extensions touted as being available for StarOffice 9.

  • IMac and video card ATI Radeon HD 4850

    Using my iMac 24"/3.06/SD with OSX 10.6 and trying to access Final Cut Express, it tells me I need an AGP video card! Why isn't the ATI Radeon HD 4850 able to display FCE? It operates all my other Apple software. Please, has anyone an idea about this

  • Weighted arithmetic mean

    hey! i have a problem with this formula: the weighted arithmetic mean. i have no idea how to use this with Querys,i know that i have to put the dates, asign a weight, add all fields and divide between all weights. but how i can do?? thank you

  • Question about SAP Webgui for html

    I have 2 questions regarding captioned subject. 1.  I am using Webgui for html under internet explorer 10 and find that there is a red box surrounding all texts.  Can I remove it ?  I have no such issue in IE 9.0 and chrome. 2.   I found slow peforma

  • Lion login problems

    Just upgraded on my 25 inch iMac.  Login problems too.  Can't reset the password, can't change it either so am locked out.  What is the best suggestion?