Forum Discussion
ChrisMac
13 years agoContributor
Hi Margaret,
I've incorporated the code below into one of my scripts and uploaded a screenshot of the log file after it ran. I use VBScipt not JScript so I'm not sure if the syntax is correct. Anyway, check out the screenshot of the log file.
Log.Picture(Sys.Desktop)
Log.Message(Sys.Desktop.FocusedWindow().Handle)
Log.Message(Sys.Desktop.FocusedWindow().FullName)
Although I'm running a keyword test, here's the code I used (or would use if I converted the keyword test to a script:
Call Aliases.vendorComboBox.SetFocus
Call Aliases.vendorComboBox.ClickItem("VENDOR 9")
Your question: Does the same error occur if you try to call the SetFocus method for other controls on the form?
Yes, the example above is a combo-box.
Related Content
Recent Discussions
Check PopupMenu exists
Solved3 days agomfoster711- 3 days agosimonaferrara
- 4 days agomacheshmeh