How to detect Edit controls on web application in Firefox?

I'm making a Coded UI Test with VS 2012 Update 4 for testing a web application.
On one of the web pages are two buttons for generating new entries.
These buttons are looking like that:
    <section class="well well-lg" id="sectionAddVorbe">
        <fieldset id="fieldsetAddVorbe" name="fieldsetAddVorbe">
            <legend translate="bewerbung.lebenslauf.Titel"></legend>
            <div class="form-group" id="fgAddVorbe">
                <button type="button" id="addVorbe" name="addVorbe" class="btn btn-default" ng-click="vm.addVorbeschaeftigung()">
                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                    <span translate="global.EintragHinzufuegen" id="spanAddVorbe"></span>
                </button>
            </div>
        </fieldset>
    </section>
    <section class="well well-lg" id="sectionAddSkills">
        <fieldset id="fieldsetAddSkills" name="fieldsetAddSkills">
            <legend translate="bewerbung.skills.Titel"></legend>
            <p translate="bewerbung.skills.Erklaerung"></p>
            <div class="form-group" id="fgAddSkill">
                <button type="button" id="addSkill" name="addSkill" class="btn btn-default" ng-click="vm.addSkill()">
                    <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
                    <span translate="global.EintragHinzufuegen" id="spanAddSkill"></span>
                </button>
            </div>
        </fieldset>
    </section>
Because there was a leak with IDs and names i added these, whereever it was necessary.
Before the adding of the IDs and names Coded UI detected the buttons just by the text (defined by global.EintragHinzufuegen), so once one of the buttons was detected the other one couldn't be added as a seperate control to the UI-controllist of UIMap.test.
Internet Explorer just needs the ID and name in the button-tag, to detect the two buttons as different controls - in that case as Pane controls.
But when i make the same test with Firefox and click on the buttons while recording the test, the buttons are still detected by the text (global.EintragHinzufuegen).
So Coded UI registers a mouseclick on the Edit control (which contains the text) and in the controlslist of UIMap.test a hierarchy of Button and Edit is added.
Which changes have to be done in the HTML-code to make Coded UI detect the controls correctly while recording the test with Firefox?
Thanks in advance!

Hi Patrick Pirzer,
>>Which changes have to be done in the HTML-code to make Coded UI detect the controls correctly while recording the test with Firefox?
Just to make this issue clearly, did you use this extension tool "Selenium components for Coded UI Cross Browser Testing"?
To find the controls, the coded UI test use the unique properties as the search properties, so if there are controls which have the same properties, I suggest you not use them as the search properties. Or you could custom a coded UI test with code or
use unique properties as the search properties.
http://blogs.msdn.com/b/mathew_aniyan/archive/2009/02/12/hand-coding-a-coded-ui-test.aspx
If I misunderstood this issue, please feel free to let me know.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to create a file under web application root from java program

    how to create a file under web application root from java program like an action class?

    like an action class?Huh? What exactly is your requirement?
    Creating a file is usually done with java.io API. Read the java.io tutorials how to play with files.

  • How to capture memory usage for web application

    In OATS openscripts, how to capture memory usage for web application? Does it have the exisitng java method that we can call to get the memory data (e.g. peak bytes, private bytes) consumed by web application?

    JProbe

  • How to run notepad from a web application

    hi
    can any body know,how to run notepad from a web application under tomcat

    You already asked this question:
    http://forum.java.sun.com/thread.jspa?threadID=5150005&messageID=9561597
    Obviously running notepad on the clients PC is not possible (ignoring active x)

  • Hi i am unable to load a web application on firefox, however it loads perfect in google chrome and IE7

    On loading the web application on firefox, it says the connection is not trusted... i tried treating it as an exceptiom, but it still doesnot allow to access it on firefox

    Hi.
    The internet is a big, wonderful source of knowledge.
    Here is a site that I found that will describe setting up a static IP.
    http://homepage.mac.com/car1son/staticport_fwdstaticip.html
    the pictures may be slightly different, and your Airport will be slightly different, but this is a concept that you can learn and adapt from these other sources.
    the entire article is here:
    http://homepage.mac.com/car1son/staticport_fwdintro.html
    Oh, look here's a specific OSX 10.4 page over at portforward.com
    http://portforward.com/networking/static-Mac10.4.htm

  • How to run background process with web application

    Hi,
    I have a web application , a servlet. I would like to have a background process that collecting data for my servlet.
    How can I achieve this? can someone point me to a tutorial or example?
    Also, would it be possible to share an object between the background process and myservlet?
    Thanks,

    Thanks for the idea.
    I had the background process running. :)
    But I'm still do not understand this part to share an object such as Java Map (<id,myobject>), what do you mean by "task a property of my ServletContextListener" ?
    BalusC wrote:
    If you make the task a property of your ServletContextListener implementation and put the implementation in the application scope, then you can access it from any servlet.Do you mind explain to me a bit more I'm still fairly new with this or maybe if you know an example.
    Here's my code snippet so far. How can I share myList to MyServlet?
    public class MonitorTimer extends TimerTask
           private Map<String, Channel> myList;
         @Override
         public void run()
              System.out.println("Monitor Timer times up");
              //Clear the map before fill with the new data
              if(myList!= null)
                   myList.clear();
              loadConfig();
            private void getData()
               //fill myList with data
    public class MyContextListener implements ServletContextListener
         @Override
         public void contextDestroyed(ServletContextEvent arg0)
              // TODO Auto-generated method stub
         @Override
         public void contextInitialized(ServletContextEvent arg0)
              System.out.println("Context Initialized");
              Timer timer = new Timer();
              //Run MonitorTimer every 2 minutes
              timer.scheduleAtFixedRate(new MonitorTimer(), 10*1000,2*60*1000);
    public class MyServlet extends HttpServlet implements Servlet
         @Override
         public void destroy()
              // TODO Auto-generated method stub
              super.destroy();
         @Override
         protected void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException
    }Thank you so much for your help,
    Edited by: geek.shrek on Nov 4, 2009 1:50 PM

  • How to provide streaming in J2EE web application?

    Hi Friends,
    I want to build web application which will provide streaming of data.
    This data may be in raw data, binary, files, audio, video etc. As we are using HTTP protocol for web application, then how to do streaming between server and client using HTTP protocol i.e in request response manner.
    If we want to send response of ~1 GB to client using servlet, then it's good idea that we should use data streaming concept. For data streaming if we use request/response architecture then servlet should send ~1 GB data in one go. Is it possible? And if we use data streaming tech. Is it our responsibility to do framing, maintaining data sequence, encoding/decoding, merge data and then store on client side?
    Any help will be appreciated.
    Thanks

    One idea is RTP
    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/

  • How to Hide HTML code of web application (applet)?

    hi
    On web, while running application, if user open View\Source from browser, he can see all HTML code (base_jini.html). The problem is that we can't afford to show source code to client, because it has DB connection inf (username/password) as well. How this html code can be hide from client machine?
    I think, i convey my prblom. If not, please run any web application and try to see source code from browser view menu, U will see that all configuration details are visible including db password. I suppose there should be some way to hide these details to client.
    Please help in this regard, i will be very thankful
    regards
    Asif

    Forms Listener Servlet is just another way of setting up forms on the web. The main difference is instead of the client and the Forms runtime talking directly, they do so via the webserver. This means thay you only need to have one port opened in your firewalls (e.g. 80) instead of two (80 and 9000)
    Please read the paper I indicated and this will hopefully explain it all.
    As to the suggestion of using the LOGON built int - this would be a solution but you will have to consider if this is acceptable if you have more that one user since the person running the application would have to identify themselves in some way.
    The other option is do not add the username and password in teh HTML and the default logon dialog will appear.
    Regards
    Grant Ronald
    Forms Product Management

  • How to use servlets in portal web application in Weblogic Portal 4.0

    We are developing a Portal Web application using Weblogic Portal 4.0 where in we
    have the following scenario. one JSP in webflow of a portlet calls the PipeLine
    which does some processing and calls the servlet which is having the typical download
    functionality. The servlet is supposed to read the data from the pipeline session
    and create a CSV String that is dumped to the client browser. The problem is even
    we are doing response.setContentType("application/save") in the servlet it is
    still displaying the content as html in the portlet. I guess since all our request
    are send to the webflow contolling servlet and it is setting the content type
    and hence our servlet is not working. How do I solve this problem? Thanks Yogesh

    Hi Renu
    Please go through the SAP Content Management here you find the documents related to Wab page Compoer and knowledge mangement. Also search for article / blog for more details.
    [http://www.sdn.sap.com/irj/sdn/nw-ecm|http://www.sdn.sap.com/irj/sdn/nw-ecm]
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • How to share HttpSession between different web application ?

    I have two web application ( ie two different war files), I discovered that the jsp in the two war files are not able to share the HttpSession, may I know how to you share the HttpSession between two different web application ?

    From the api doc:
    "Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another."
    You can not share a Session object between web apps. You can create your own sessions using a database, textfile or hashmap. Do a search on the O'Rielly web site for psuedo-sessions.

  • How to deploy XML schemas a web application?

    Hi,
    I have a couple of XML schemas in the project, which I want to import them into my BPEL using http url.
    How can I deloy XML schemas as a web application.
    Any inputs are appreciated.
    Thanks.
    ~V~

    You already asked this question:
    http://forum.java.sun.com/thread.jspa?threadID=5150005&messageID=9561597
    Obviously running notepad on the clients PC is not possible (ignoring active x)

  • Controlling your web applications starting order

    Hello,
    Is there a way to control the start up order of the web applications deployed on tomcat? Right now Tomcat is starting them alphabetically, but I want to change that order.
    Regards,
    Erwin.

    You'll probably get better answers on the Tomcat forums. This forum deals with the J2EE SDK, which uses the Sun Java System Application Server.
    -Ian Evans

  • How to solve Error SPSite - The Web application at address could not be found

    Hello,
    I am trying to find out the internal name of a custom SharePoint list columns, for this I have used following code snippet in my
    console application but getting below error. The site I am accessing is a public SharePoint web site. This code is working
    well with my local host site and i am able to get the internal names of any list columns but don't understand why this is failing with
    public SharePoint site
    For avoiding this issue I have done following steps:
    1.Rebuild the application
    2.changed the  platform target as "Any CPU"
    3.Visual studio and this public site is working in my admin account, but still I am getting the error!
    I use visual studio 2010 and SharePoint 2010
    please note the error I am getting
    Error : The Web application at https://public.sp.a5-group.com/ could not be found. Verify that you have typed the URL correctly.
    If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application
    Code Snippet
    static void Main(string[] args)
    using (SPSite Site = new SPSite("https://public.sp.a5-group.com/"))
    using (SPWeb web = Site.RootWeb)
    SPList splst = web.Lists["ListCard"];
    foreach (var field in splst.Fields)
    bool isHidden = splst.Fields[field.ToString()].Hidden;
    if (!isHidden)
    string internalName = splst.Fields[field.ToString()].InternalName; //This will give you the internal column name.
    Console.WriteLine(internalName);
    Console.ReadLine();

    I thin you need to have sharepoint installed on same computer and URL should be working on this computer.
    If this URL WEB APP is in your IISsite try to create disableloopbackcheck registry which should be help
    When you use the fully qualified domain name (FQDN) or a custom host header to browse a local Web site that is hosted on a computer that is running Microsoft Internet Information Services (IIS) 5.1 or a later version, you may receive an error
    message 
    http://support.microsoft.com/kb/896861

  • How to call Xcelsius in Java Web application without OpenDoc

    Hi,
    We require to call Xcelsius Dashboard from a Java Web application. We cann't use OpenDoc function as result of some client preferences/restrictions
    Please let me know, what would be the other method to call the Xcelsius Dashboard from a Web application.
    Regards,
    Sachin

    Xcelsius docs are in swf format.  You could probably just host them without security and view with flash.

  • How to use Swing in a web Application

    Can you suggest me some good PDF/tutorial or some good site for reading about using SWING in a Web Application.
    In our web application we plan to use JSP/Struts for the presentation layer. However there are a few screens that require some advanced UI like color coded assets and a graphical version of Outstanding Vs Available limit. We are wondering whether we should use SWING for these screens. Do you think this is a good idea or is there a better apprach to deal with this
    What are the disadvantages of using SWING VS JSP/Servlet in a Web environment. Is there a site or pdf where i can get information about this.

    I'd say the biggest disadvantage is that your client machines have to download and install the bloody java plug in.
    What you write about your UI ain't half vague. What the deuce is a "color coded asset"? Is it
    interactive? If not, could it be represented by an image? If so, even if it is a non-static image, it is a simple
    matter for your webapp to generate the image on the fly. Many web app tutorials demonstrate that.

Maybe you are looking for