Forum Discussion
As mentioned, from the error, the problem is with the rgAppCard and is most likely a timing issue. Rewrite your code as follows.
var appCardObj = Aliases.B6.DialogOneTimeFeeTypes.WaitAliasChild('rgAppCard', 5000)
if (appCardObj.Exists) {
appCardObj..TGroupButton.ClickButton();
}
else {
Log.Error('regAppCard object does not exist')
}
And report the results.
tristaanogre thanks for help. I try this and keep testing, so I tell step by step:
Aliases.B6.DialogCompanyAttribCodes.rbAttribType.TGroupButton.ClickButton();
Aliases.B6.DialogCompanyAttribCodes.rbAttribType.TGroupButton2.ClickButton();
Aliases.B6.DialogCompanyAttribCodes.rbAttribType.TGroupButton3.ClickButton();
Aliases.B6.DialogCompanyAttribCodes.rbAttribType.TGroupButton4.ClickButton();
Aliases.B6.DialogCompanyAttribCodes.rbAttribType.TGroupButton5.ClickButton();
this is fragment of my code, which didn't work. after that I record one click on TGroupButton2 and don't paste instead of this. Delete also new record script.
Run an old fragment and TGroupButton2 works, but still not works other TGroupButtons.
Then record all five clicks on the buttons and immediately delete this record.
Old code works.
I think problem is an object before TGroupButton-s (in this case: rbAttribType), which TC should not find before new record script, even in that case if you immediately delete that new one.
Related Content
- 8 years agomadhuri_kn
Recent Discussions
- 7 hours agoSvetaG