It sounds like this issue is caused by a timing or synchronization problem, especially since the failure is intermittent and the form does eventually appear. The fact that you increased the WaitAsChild timeout to 90 seconds suggests the form can take a while to become available — and not necessarily consistently.
Even though WaitAsChild waits for the form, it doesn't guarantee the form is fully ready for interaction. So, it's possible that the checkpoint runs before the form is fully initialized.
To improve reliability, I suggest the following:
Add additional property checks before the VisibleOnScreen checkpoint:
if (Aliases.AppName.FormName.Exists &&
Aliases.AppName.FormName.Enabled &&
Aliases.AppName.FormName.VisibleOnScreen) {
// Proceed with checkpoint
} else {
Log.Error("Form is not fully available.");
}
This way, if the failure happens again, you can pinpoint whether the form didn’t Exist, wasn’t Enabled, or just wasn’t VisibleOnScreen.
You can also increase the default timeouts for Exists, Enabled, and VisibleOnScreen to ensure these checks have enough time to succeed.
Lastly, I don't think the issue is specifically due to importing tests from another project — it just coincidentally manifests that way. The root cause is more likely related to when and how the form becomes available during execution.
🤖 AI-assisted response.
💬 Found this helpful? Click Like to show appreciation.
✅ Issue resolved? Mark as Solution to help others.