Forum Discussion
My guess is that the various "Next" buttons are actually Next buttons on a redrawn form. Basically, you click "Next" and then the form reloads and you click "Next" again and so on. What is probably happening is that the automation is running faster than the application can handle it so one of your "Next" clicks is happening on the previous button. You might want to build some delays into your automation to detect when the next form is displayed before proceeding through the test.
- tlehmann7 years agoNew Contributor
Hi Robert,
Thanks for your reply. I just tried it, but unfortunatly with the same problem.Regards,
Thomas.
begin Aliases.Handwerk.MainForm.dxRibbon.ClickItem('[0]|Mandanten|Mandantensicherung'); Delay(3000); Aliases.Handwerk.ClientBackup.btnNext.Click(); Delay(3000); Aliases.Handwerk.ClientBackup.btnNext.Click(); Delay(2000); Aliases.Handwerk.ClientBackup.LayoutControl.ed_TargetDir.TcxCustomInnerTextEdit.Keys('c:\temp'); Delay(3000); Aliases.Handwerk.ClientBackup.LayoutControl.edHowToSave.ClickItem('ZIP-Archiv (Normal)'); Delay(3000); Aliases.Handwerk.ClientBackup.btnNext.Click(); Delay(3000); Aliases.Handwerk.ClientBackup.btnNext.Click(); Delay(3000); Obj:=Sys.Process('Handwerk').Window('#32770', 'Informationen', 1); Obj.Keys('[Enter]'); end;
- tristaanogre7 years agoEsteemed Contributor
My guess, then, is that this last Information window is a modal dialog.
I'm not sure why this is happening... according to the documentation, everything should work smooth.
Suggestion: Instead of "Click" try "ClickButton" and see if it works better.
- tlehmann7 years agoNew Contributor
Thanks for your effort Robert, but if i use ClickButton i get an error.
"The object with the specified attributes does not exist."
Regards,
Thomas.
Related Content
- 2 years agomattb
Recent Discussions
- 2 hours agojstaehlin
- 20 hours agoAivanitskiy
- 23 hours agonastester