Ask a Question

How get message in messagebox

SOLVED
MadGrb
Contributor

How get message in messagebox

Good day!

 

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

1 ACCEPTED SOLUTION

Accepted Solutions
anupamchampati
Frequent Contributor

Re: How get message in messagebox

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 🙂

View solution in original post

4 REPLIES 4
MadGrb
Contributor

Re: How get message in messagebox

I use thiese Code:

 

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

 

is there other way?

hkim5
Staff

Re: How get message in messagebox

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

Best,
Justin Kim
anupamchampati
Frequent Contributor

Re: How get message in messagebox

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 🙂

View solution in original post

sonya_m
Community Manager

Re: How get message in messagebox

Thank you everyone for replying in this thread🙂

 

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


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: