Jump to content
Sign in to follow this  
Zohar

[Solved] How to Get the Type of a WebControl?

Recommended Posts

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 by Zohar

Share this post


Link to post
Share on other sites

Hi

When I try to get $oIE.document.activeElement.localName, it causes an error...

Edited by Zohar

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...