Forum Discussion
Abramova
Staff
14 years agoHi Chris,
Does the same error occur if you try to call the SetFocus method for other controls on the form?
Also, to help us investigate the problem, please follow the steps below:
1. Paste the following code to your script after the SetFocus method call:
Log.Picture(Sys.Desktop);
Log.Message(Sys.Desktop.FocusedWindow().Handle) ;
Log.Message(Sys.Desktop.FocusedWindow().FullName);
2. Run the test.
3. After the test run is over, capture a screenshot of the test log and send it to us.