myjunk Posted July 18, 2008 Posted July 18, 2008 Trying to automate a webpage which presents an inputbox which calls a datetimepicker activeX control where the user can select a FROM and a TO date. </SCRIPT><tr> <TD>WD From Date</TD> <td> <OBJECT classid=CLSID:DE2E3B51-5C35-11D3-9B8E-006097501F28 codeBase=http:\\URL\Directory\ActiveX\dtpick\DTPick.CAB#version=1,0,0,1 id=dtp1 style="HEIGHT: 22px; LEFT: 0px; TOP: 0px" width=97 VIEWASTEXT> <PARAM NAME="_ExtentX" VALUE="2566"> <PARAM NAME="_ExtentY" VALUE="661"> <PARAM NAME="Value" VALUE="date"> <PARAM NAME="CustomFormat" VALUE="DD-MM-YYYY"> </OBJECT> </td> </tr> <tr> <TD width="114">WD To Date</TD> <td> <OBJECT classid=CLSID:DE2E3B51-5C35-11D3-9B8E-006097501F28 codeBase=http:\\URL\Directory\ActiveX\dtpick\DTPick.CAB#version=1,0,0,1 id=dtp2 style="HEIGHT: 22px; LEFT: 0px; TOP: 0px" width=97 VIEWASTEXT> <PARAM NAME="_ExtentX" VALUE="2566"> <PARAM NAME="_ExtentY" VALUE="661"> <PARAM NAME="Value" VALUE="date"> <PARAM NAME="CustomFormat" VALUE="DD-MM-YYYY"> </OBJECT> </td> </TR> <script LANGUAGE=vbscript> AutoIT Info shows this Class : DTPicker20WndClass Instance : 1 ClassNN : DTPicker20WndClass1 Advanced(Class) : [clASS:DTPicker20WndClass; INSTANCE:1] I've tried this $oform = _IEFormGetObjectByName($oIE,"frma") $odate = _IEGetObjByID($oform,"dtp1") _IEAction($odate,"click") and also tried using _IEFormElementSetValue ($odate,"15-Jul-2008") both doesnt work. Any and all help is very much appreciated
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now