Dewayne_Pinion
11 years agoContributor
Can't click button on pop up form
Greetings,
I am using the scripting instead of keyword for testing. I am trying to click a button that is on a pop up form, but I receive an error:
Object doesn't support this property or method: 'M3_AKShell.frmValidationFailureMessageBox.tlpmsgbox.btnOk'
Error location:
Unit: "M3 Automation\M3 Automation\Script\test"
Line: 24 Column: 3.
Looking through the forums, I went ahead and identified ClsFullName:
M3.CustomControls.M3Button
I realize this is a custom button, so I tried object mapping using the full CLSFullName as a class name as well as just btnOK.
None of these have worked so far. I need to be able to click this button to continue. Is there any other route I can go to have testcomplete click the button?
I am using the scripting instead of keyword for testing. I am trying to click a button that is on a pop up form, but I receive an error:
Object doesn't support this property or method: 'M3_AKShell.frmValidationFailureMessageBox.tlpmsgbox.btnOk'
Error location:
Unit: "M3 Automation\M3 Automation\Script\test"
Line: 24 Column: 3.
Looking through the forums, I went ahead and identified ClsFullName:
M3.CustomControls.M3Button
I realize this is a custom button, so I tried object mapping using the full CLSFullName as a class name as well as just btnOK.
None of these have worked so far. I need to be able to click this button to continue. Is there any other route I can go to have testcomplete click the button?
- When you use the object spy on the button it is called: M3_AKShell.frmValidationFailureMessageBox.tlpmsgbox.btnOk
to click on it use:
M3_AKShell.frmValidationFailureMessageBox.tlpmsgbox.btnOk.click()