Arunrmit

Select Drop Down - WebPage

2 posts in this topic

#1 ·  Posted

Hi,

I am new to AUTOIT, I would like to select drop down from the webpage. But  when I am using the below code it is not doing anything.

This is the drop down I would like to select from the webpage;

<select name="cboStandards" onchange="javascript:setTimeout('__doPostBack(\'cboStandards\',\'\')', 0)" id="cboStandards" class="SELECTCOMBO">
   <option value="Orientation Store 7009 WKD-F">Orientation Store 7009 WKD-F</option>
    <option value="Orientation Store 7252 WKD-F">Orientation Store 7252 WKD-F</option>
    <option value="Orientation Store 7253 WKD-F">Orientation Store 7253 WKD-F</option>
    <option value="Orientation Store 7254 WKD-F">Orientation Store 7254 WKD-F</option>
    <option value="Orientation Store 7255 WKD-F">Orientation Store 7255 WKD-F</option>
</select>

 

_________________________________________________

MY Code;

AutoItSetOption ("TrayIconDebug", 1)
#include<IE.au3>
$sUsername = "arun"
$sUsername = "XXX"
$sUrl = "XXXXX"
$oIE = _IECreate($sUrl, 0, 1, 0, 1)
Sleep (4500)
Send ("arun")
Sleep (4500)
Send ("{TAB}XXX")
Sleep (4500)
Send ("{Enter}")
Sleep (4500)
WinSetState("[ACTIVE]", "", @SW_MAXIMIZE)
Sleep (4500)

; ** ITERATION - SELECTION OF STANDARD **

; ** SELECT STANDARD **

; ** SELECT STANDARD **

$oActivitySelect = _IEGetObjByName($oIE,"cboStandards")

_IEFormElementOptionSelect($oActivitySelect,"Orientation Store 7009 WKD-F")

_____________________________________________________________________

I would to know why it is not working. Any help in this would be really appreciated.

 

Thanks,

Arun

Share this post


Link to post
Share on other sites



#2 ·  Posted

Please check the following posts:

 

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