Forum Discussion

rkadali's avatar
rkadali
Occasional Contributor
3 years ago

Identifying Dynamic message window

Hi,

 

I need to delete this following window using testcomplete. The message window is not identified as static text is dynamic. Please suggest a solution.

 

"Aliases.NorthropGrumman_Oaisis_UI_Windows_Claim.Window("#32770", "OAISIS", 1).Window("Static", "Delete Paper Clip *?", 2).btnYes"

did not work.

We have multiple message windows with "Aliases.NorthropGrumman_Oaisis_UI_Windows_Claim.Window("#32770", "OAISIS", 1) description. Please find the screenshot of mapping.

 

  • Is the main page that this button comes from something that's unique?  If so, you could start from that page and then try FindChild to get to the button. 

  • I would try it with

    "Delete Paper Clip *"

  • rkadali's avatar
    rkadali
    Occasional Contributor

    Thank you for your response. I tried that. But didnt work. Please find the screenshot.

     

     

    • Marsha_R's avatar
      Marsha_R
      Moderator

      Where in the mapping does it show the Delete Paper Clip text?

  • rkadali's avatar
    rkadali
    Occasional Contributor

     

    Hi Marsha,

     

    I sent the wrong screen shot. Please find the updated screen shots.

     

    Thank you for your time.

    Roja

  • rkadali's avatar
    rkadali
    Occasional Contributor

    Yes. I am trying to click the Yes button on that window. 

    • Marsha_R's avatar
      Marsha_R
      Moderator

      What does Object Spy show if you just look at the Yes button?

  • rkadali's avatar
    rkadali
    Occasional Contributor

    The object spy says,  Sys.Process("NorthropGrumman.Oaisis.UI.Windows.Claim").Window("#32770", "OAISIS", 1).Window("Button", "&Yes", 1)

     

    • Marsha_R's avatar
      Marsha_R
      Moderator

      Is the main page that this button comes from something that's unique?  If so, you could start from that page and then try FindChild to get to the button. 

      • rkadali's avatar
        rkadali
        Occasional Contributor

        I used child feature and on Name mapping  editor I selected Required children. It worked.

         

        Thank you for your guidance Marsha!