Forum Discussion

sborno's avatar
sborno
Occasional Contributor
5 months ago

Problems by validating a tooltip of a wpf application

Dear community,

I've encountered the following issue with a keyword test, as shown in the attached picture:

The keyword test consists of 6 steps: Lines 1 to 4 and Lines 6 to 7. Line 5 is a manual interruption by the tester. The script in Line 6 triggers the visibility of the tooltip (of Component1), while the script in Line 7 validates the tooltip.

Everything works perfectly if:
- The tester executes the keyword test and stops at Line 5 using a breakpoint.
- Subsequently, the tester resumes execution from Line 6 using the context menu item "Run from Selected Operation".

However, the keyword test fails to find the tooltip if:
- The tester executes the keyword test without stopping, so Lines 1 to 5 and Lines 6 to 7 are executed consecutively.

What is the difference between these two scenarios?

What could be the root cause of this problem and how can it be resolved?

Thank you for your responses in advance!


- Currently we use the TestComplete version 15.62.2.7 x64
- The tooltip is visible in both cases

4 Replies

  • Guigz's avatar
    Guigz
    Occasional Contributor

    I changed the "Keys" manipulation part for "if else" that click directly the chosen item separately instead of trying to do it dynamically. This might not be viable for combobox with a lot of items, but I only had 4 and it seem to work in my case. 

    • Guigz's avatar
      Guigz
      Occasional Contributor

      When I manually try to reproduce the steps, the window stay open as I would expect.

      • Guigz's avatar
        Guigz
        Occasional Contributor

        I just saw that before clicking the button I select an item from a combobox dropdown using the Keys("[Up]") and Keys("[Enter]"). If I don't do that part the window don't disappear, but I still need to do that part