Forum Discussion

VeenaDevi's avatar
VeenaDevi
Contributor
4 years ago

In IE11 , JSP (Java based application) pages not getting captured as CSS/Xpath in Name mapping

Environment : IE 11(Application will not work in Chrome)

Dev Background: Java 1.8 and JSP ,Quit old Application 

Testcomplete : 14.73 (Latest - Without Device Cloud ), project enabled to use Css/Xpath locator 

 

Whether for recording or using Object Spy, not getting the option to select css/xpath locators .

Group of radio buttons also not get captured  while recording .

Please suggest some solution for the same ,

 

 

 

  • Marsha_R's avatar
    Marsha_R
    4 years ago

    For the radio buttons,  you should at least be able to tell them apart by text or some other value inside their one name mapping.   Drill down in Object Spy and find the field where it stores the label/text/whatever the UI is showing that's different between the buttons.

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    How controls are recognized in TestComplete? Can you post some sample screenshot?

    What is the root element of some object from the application? Is it Browser/Page or Java process?

    If I remember it correctly, JSP applications run within Java VM and are not web pages but Java applications. If my memory is correct then, obviously, no XPath/CSS locators are provided for controls of JSP application.

     

    • VeenaDevi's avatar
      VeenaDevi
      Contributor

      JSP Pages run in webbrowsers only. Not in JVM , 

       

      Name mapping captured as ObjectType and idstr.

       

      for 4 different radio button , the same namemapping is used, so not able to control which radio button 

       

      • Marsha_R's avatar
        Marsha_R
        Moderator

        For the radio buttons,  you should at least be able to tell them apart by text or some other value inside their one name mapping.   Drill down in Object Spy and find the field where it stores the label/text/whatever the UI is showing that's different between the buttons.