"Message box info is absent" error using get-last-message-box

119 Views Asked by At

I am trying to verify a text in a text field in a native dialog using the rcptt framework. The code I am using is:

set-dialog-result Folder

get-window "Open Project" | get-group "Project Details"
 | get-button "..." | click

get-last-message-box | get-property Folder 
| equals "apiprojects" | verify-true

However, I receive Message box info is absent error on the get-last-message-box function. I couldn't find any info on this error in the net. Could you , please help?

1

There are 1 best solutions below

6
Adam Horvath On

Command get-last-message-box returns a MessageBoxInfo object, which has two relevant properties only: title and message. It can not be extended with a "Folder" property.

Source Code