Forum Discussion

guillaume's avatar
guillaume
Contributor
13 years ago

WinForm.ComboBox ClickItem raises an "out of window bounds" exception.

Hi.



I am using TC 8.70.



I called ClickItem function on a WindowsForms10.COMBOBOX component.

The parameter passes is a string that matches the first item of the list.



At run time, the event fails :

There was an attempt to perform an action at point (-720, 817), which is out of the window bounds.

The window size is (144, 42); screen rectangle: the left top corner is (0, 21), the right bottom corner is (143, 62).
The screen coordinates of the point is (-720, 838).




The funny thing is that the item was actually selected...



Any idea ?
  • Hi,


    It seems that the error is posted by another method, not by the ClickItem method. To know what operation or script line posts the error, double-click the message in the test log. TestComplete will open the test or script unit for editing and highlight the operation or line in it.


    The combo box item is selected because the ClickItem method was called successfully.

  • Hello.



    Good try Margaret.



    But as I told you, the ClickItem is the method failing.



    Screenshot_11 shows TCLog file with some OutOfWindowBounds errors.

    Screenshot_21 shows TC after I double click on the focus error message.



    You can actually see that the ClickItem is focuses.

    Note that the Item I asked to select is the "Attendue" one.



    Screenshot_3 shows part of the original Vizualiser picture posted to the TCLog.

    As you can see, "Attendue" has been selected.



    Any other idea ?
  • Hi,


    You are right. The ClickItem method posts this error. To help us find out why this happens, please send us the application under test via the Contact Support form.