Jump to content
Sign in to follow this  

Problems : _IEFormElementOptionSelect

Recommended Posts


<div id="main">
<h1>Buy package</h1>
<div id="get_package">
    <select name="package_selector" id="package_selector">
        <option value="0">Select a Package</option>
        <option value="49">Get 1</option>
        <option value="50">Get 2</option>
        <option value="51">Get 3</option>
        <option value="52">Get 4</option>
        <option value="53">Get 5</option>
        <option value="54">Get 6</option>

I want to choose Get 6, so i use this code

$oForm3= _IEFormGetCollection ($oIE3, 0)
$oGet6 = _IEFormGetObjByName ($oForm3, "package_selector")
 _IEFormElementOptionselect ($oGet6 , "54", 1, "byValue" )

It doesn't work, i don't know why. I'm just a beginner in AutoIT , plz help me

Edited by beginner85

Share this post

Link to post
Share on other sites

You want to use _IEFormElementGetObjByName instead of _IEFormGetObjByName.

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.