Jump to content
Sign in to follow this  
greg613

Sending text to specific textbox in IE

Recommended Posts

greg613

Tried searching for this but nothing stood out. I'm trying to send text to a specific textbox on an IE webpage. I'm able to navigate IE clicking buttons etc but just having issue with this part of it. I don't want to just focus on the textbox. I want to use something like control send or controlsettext if thats possible.

$oAdd = _IEGetObjByName ($oIE, "$add_name")

_IEAction ($oAdd, "focus")

ControlSend("http://" & $ip & "/Addserver.htm - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "$ip2", 1)

and

ControlSetText("http://" & $ip & "/Addserver.htm - Windows Internet Explorer","",$oAdd,"$IE")

This is what I tried so far but they both did not work. The $add_name is correct because i'm able to focus to that control.

Send("bla bla bla") is not a viable option.

Thanks for any help you can provide.

Share this post


Link to post
Share on other sites
Authenticity

Get the element like _IEGetObjById() and then, if applicable use _IEFormElementSetValue($oElem, 'Something')...

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.