Forum Discussion

Kostja's avatar
Kostja
Contributor
9 years ago

DevExpress: Can't click on a specific button

Hey everybody,

 

i try to access/click on a button which isn't recognised as a single button. It is an object which contains two buttons and the problem now is to tell testcomplete to click on the desired one. But when i use coordinates like this (for example):

 

var x = btn1["Top"] + 10;
var y = btn1["Left"] + 10;

btn1["Click"](x,y);

 

 

i always get the following error --> There was an attempt to perform an action at a point, which is beyond the screen.

During the test it also says 'Waiting for the window to be activated'.

 

Without coordinates i can access each element/object without any issues.

 

Don't know if it matters or not, but the button is within a window which pops up after selecting a certain option. But the window doesn't have a WndClass, so i supose it is not classified as an Unexpected Window, right?

 

So my question is: How can i access the specific button (the marked one in the attachment)?

  • Thanks to the help of the support this issue got solved.

     

    Solution: Add the class or name of the specific object to Composite Controls (Current Project Properties --> Open Applications --> WPF).

     

    For more Information --> https://support.smartbear.com/viewarticle/69406/

     

  • inspect.exe recognizes the 'Erstellen'-Button properly. So TestComplete should also be able to recognize the button separately, right?

     

    Could it be that i'm missing an entry in the MSAA or something like that?

     

    Thanks for help in advance.

    • Kostja's avatar
      Kostja
      Contributor

      Thanks to the help of the support this issue got solved.

       

      Solution: Add the class or name of the specific object to Composite Controls (Current Project Properties --> Open Applications --> WPF).

       

      For more Information --> https://support.smartbear.com/viewarticle/69406/