Forum Discussion

audai's avatar
audai
Occasional Contributor
13 years ago

buttons of WPF Message Box

Hi,



I want to click a button exist in MessageBox window either yes or no.



which method or property should I used???



Can any one help, please???



Thanks in advance.
  • audai's avatar
    audai
    Occasional Contributor

    I can't use ClickButton because I can't take a reference of this button.


    DXMessage in WPF its an object and i can;t take a reference to the buttons inside it???





    So, how can I do it????

  • audai's avatar
    audai
    Occasional Contributor
    I can't use Object Spy to reference to the these buttons in message box because its appear as one object with buttons.
  • Hi,


    I guess, your message box is a composite control. TestComplete does not analyze custom WPF control templates by default. Please go through the following topic: Support for WPF Control Templates. It describes how you can expose elements in composite controls.


    Ann