Forum Discussion
I see that, for each of those errors, there is a picture included. Does the captured picture give any visual indication as to what's going on?
- najes7 years agoOccasional Contributor
Thank you for your response.
I just check the captured picture, however i didn't see anything wrong.
On the first error "Unexpected window", it only showed the dialog window that have edit box that i want to fill.
On the second and third error, it showed the entire windows desktop while the application is running.
I have tried using the "Ignore Unexpected Window" on the project properties, however I receive the following error:
"The 'Default Library' window is invisible and thus cannot be activated. 10:15:49 Normal ""The test execution was interrupted. 10:15:49 Normal "
This is so weird because the edit box that i want to SetText in not in the 'Default Library' window,
I don't even have 'Default Library' window on my name mapping.- Marsha_R7 years agoModerator
Try setting a breakpoint on the test line before the one that gets the error. Let the test pause there so you can click through the test steps manually and see what's happening. That may give you a clue.
- najes7 years agoOccasional Contributor
Finally figured the workaround for this.
So i used the FindChild method instead of the mapping (still not sure why the mapping didn't work tho):Aliases.MainWindow.FindChild(["WndClass","ControlId"],["Edit",1745],6,true).SetText(100);
Thank you for the replies!
Related Content
- 2 years ago
- 5 years ago
Recent Discussions
- 18 hours ago
- 19 hours ago
- 5 days ago