out of the window bounds
TestComplete is returning the error below:
There was an attempt to perform an action at point (0, 0), which is out of the window bounds.
I'm trying to treat it and avoid the error log, but it isn't working as expected. My code is this:
function Create_Tipo_Beneficios()
{
Log.Message("Verify if the button exists");
if (btnNew.Exists && btnNew.Visible)
{
Log.Message("Click on the button");
btnNew.Click();
} else {
Log.Error("Button not found.");
}
if (!txtCode.Exists) {
Log.Error("Something went wrong. Check logs for info. Restart the function.");
Create_Tipo_Beneficios();
}
Log.Message("Set a Code");
txtCode.SetText("01234");
Log.Message("Set a Description");
txtDescription.SetText("descrição do beneficio");
Log.Message("Click on Save Button");
btnSave.Click();
}