Jump to content
Sign in to follow this  
Zohar

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

Recommended Posts

Zohar

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
Zohar

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
Chimp

$oIE.document.activeElement.nodename 
$oIE.document.activeElement.id

$oIE.document.activeElement.uniqueid

Edited by Chimp
  • Like 1

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
Zohar

Thank you Chimp, activeElement.nodename gave exactly what I needed!

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  

×