Zohar Posted July 26, 2014 Share Posted July 26, 2014 (edited) Hi If you open IE, and go to some page, then set the focus on some WebElement, then $oIE.document.activeElement will return a reference to that webelement. How do I check what Type is it? For example IMG, INPUT, etc.. Thank you Edited July 26, 2014 by Zohar Link to comment Share on other sites More sharing options...
Danp2 Posted July 26, 2014 Share Posted July 26, 2014 Have you tried checking the value of $oIE.document.activeElement.localName? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Zohar Posted July 26, 2014 Author Share Posted July 26, 2014 (edited) Hi When I try to get $oIE.document.activeElement.localName, it causes an error... Edited July 26, 2014 by Zohar Link to comment Share on other sites More sharing options...
Gianni Posted July 26, 2014 Share Posted July 26, 2014 (edited) $oIE.document.activeElement.nodename $oIE.document.activeElement.id $oIE.document.activeElement.uniqueid Edited July 26, 2014 by Chimp Zohar 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
Zohar Posted July 26, 2014 Author Share Posted July 26, 2014 Thank you Chimp, activeElement.nodename gave exactly what I needed! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now