Forum Discussion

Guigz's avatar
Guigz
Occasional Contributor
9 months ago
Solved

Simple test looking for a TextNode end up not finding it even if it is in the screenshot.

Hi, I made a KeywordTest that open a CHM file and search for a TextNode found in the right section and this test fail intermittently because it does not find the text, but the screenshot shows me tha...
  • Marsha_R's avatar
    9 months ago

    If a problem is intermittent, I usually start looking for a timing issue. To prove this out, you can put a long Delay between the open and the search and let's see if that cuts down the failures significantly. If that is indeed the problem, then we can work on a better way to handle the timing. Delay is easy to do but there are more elegant ways to implement it.

    If that doesn't make the problem better, we'll try something else.