s5h
11 years agoContributor
HTML Check if object has the focus
Hi I was wondering how you would check in TC if a HTML object like a textbox currently has the focus. I have tried the document.HasFocus but does not work for me. any ideas
- 11 years agoTry to use document.activeElement property. It will return the native web object, so it will not have TestComplete specific properties and methods.