Forum Discussion
Hi,
I am having the same issue now, the object got focus and the test is running fine but the error message says "Unable to find the object SetFocus. "
When using SetFocus() with window(code below), there is no error message.
Aliases.browser.BrowserWindow3.SetFocus();
Here is my code, I have tried the solution mentioned in this post. The delay doesn't work, and FullName is the name of the object that got focused. How do I disable the error message??
aqUtils.Delay (2000, "delay to click");
globalObjects.chooseAfile.SetFocus();
Log.Message(Sys.Desktop.FocusedWindow().FullName);
roytberA wrote:
Hi,
I am having the same issue now, the object got focus and the test is running fine but the error message says "Unable to find the object SetFocus. "
When using SetFocus() with window(code below), there is no error message.
Aliases.browser.BrowserWindow3.SetFocus();
Here is my code, I have tried the solution mentioned in this post. The delay doesn't work, and FullName is the name of the object that got focused. How do I disable the error message??
aqUtils.Delay (2000, "delay to click");
globalObjects.chooseAfile.SetFocus();
Log.Message(Sys.Desktop.FocusedWindow().FullName);
Note that the OP is a different general source of the issue and is also 4 years old. There have been numerous updates to TestComplete since then as well as different ways of handling things. The original post is in a desktop application where as your situation seems to involve web applications.
I have a question concerning your post... you are trying to set focus on the browser window instead of some component or page within your web application. What are you intending to achieve? Please describe what you are trying to implement and any information such as application type (WEB vs Desktop), technologies used in the app, screenshots of the objects in question using Object Spy and/or object browser, etc.