Sign in to follow this  
Followers 0
Jfish

IE form element color

1 post in this topic

Hello all,

I have an IE automation question for you. Is there a way to highlight an input box on an IE form once you have identified it as in the case of $oQuery below? You can see similar functionality when you are in the developer tools (F12) in IE (or Firefox) and you click on the HTML only to see that element highlighted. I am just wondering how they do that. Any information would be greatly appreciated.

#include<IE.au3>
$sURL="http://www.yahoo.com"
$oIE=_IECreate($sURL,1)
$oForm=_IEGetObjByName($oIE,"p_13838465-searchform")
$oQuery=_IEFormElementGetObjByName($oForm,"p_13838465-p")
_IEFormElementSetValue($oQuery,"test data")
_IEFormSubmit($oForm)

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

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  
Followers 0