Forum Discussion

rkadali's avatar
rkadali
Occasional Contributor
2 years ago
Solved

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.

 

  • I would try it with

    "Delete Paper Clip *"

  • 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. 

11 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    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
      Champion Level 3

      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

    • Marsha_R's avatar
      Marsha_R
      Champion Level 3

      Are you trying to click the Yes button?

  • rkadali's avatar
    rkadali
    Occasional Contributor

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

    • Marsha_R's avatar
      Marsha_R
      Champion Level 3

      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
      Champion Level 3

      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!