Forum Discussion
I try Delay(2000) and also sleep(2000) before the TGroupButton, but result is the same.
After that I record new script for groupButtons and paste it over the old groupButtons click.
It works.
After that I comment second line (second groupButton click) and remove the comment mark an old groupbutton click and it works also.
Aliases.B6.DialogOneTimeFeeTypes.rgAppCard.TGroupButton.ClickButton();
// Aliases.B6.DialogOneTimeFeeTypes.rgAppCard.TGroupButton2.ClickButton();
Aliases.B6.DialogOneTimeFeeTypes.rgAppCard.TGroupButton2.ClickButton();
I'm am very confused what to do.
Agree you that TC14 is faster than TC12, but I think this is not problem about that case.
How can I increase default timeout?
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.
- temo255 years agoOccasional Contributor
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
- 8 years agoclay
Recent Discussions
- 2 days agoGane195