Forum Discussion

MadGrb's avatar
MadGrb
Contributor
5 years ago

How get message in messagebox

Good day!

 

How can I get a message that appears in the message box?

  • I think you can get some property in the Message box obj

    1. Try doing Object Spy on the message box and check for any items which have text in it.

    2. If the above method does not work try adding the Class name of the message box to MSAA list and let Microsoft do your work 🙂

  • anupamchampati's avatar
    anupamchampati
    Frequent Contributor

    I think you can get some property in the Message box obj

    1. Try doing Object Spy on the message box and check for any items which have text in it.

    2. If the above method does not work try adding the Class name of the message box to MSAA list and let Microsoft do your work 🙂

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you everyone for replying in this thread🙂

       

      MadGrb How did you solve this? Please share you final approach with us.

  • I use thiese Code:

     

    .Find('AutomationId','ContentText',10).ObjectIdentifier

     

    is there other way?

    • hkim5's avatar
      hkim5
      Staff

      I think you have the right idea here. There may be some other object properties that contain your message, but most likely it will be the contentText or the wText property