Sign in to follow this  
Followers 0
Jaboowaki

Select Combobox item in IE form

2 posts in this topic

How do I select a value in a combobox on a webpage?

<AutoIt> Local $oText = _IEGetObjById($oIE, "ProductDetailsForm_FolderID")

If StringLeft($itemArray[1][43], 1) = 1 Then

_IEFormElementOptionselect($oText, "BID", 1, 10007634, 1)

Else

_IEFormElementOptionselect($oText, "QC", 1, 10007053, 1)

EndIf</Autoit>


Share this post


Link to post
Share on other sites



Solution:

_IEFormElementSetValue($oText, "10007053")

$oText.fireEvent("onchange")


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