stefan1 Posted May 18, 2012 Share Posted May 18, 2012 Hello , I try to choose some category from list in web page but somethin i wronge . #include <IE.au3> _IEErrorHandlerRegister() $oIE = _IECreate("http://www.......com") $oQuery = _IEFormElementGetObjByName($oIE , "data[category_id]") _IEFormElementSetValue( $oQuery, "Mercedes6") here is part of Html i try to set object at Mercedes6 <DIV class="area clr"><DIV class="fleft rel"> <DIV style="DISPLAY: none" id=category-container-div><INPUT id=category-container type=text name=data[category_id] jQuery16403879751113596281="40"> </DIV> <SELECT class="light fbdr required long x-normal novisualdd categories-select"> <OPTION selected value="">Choose category</OPTION> <OPTION value=360>mercedes</OPTION> <OPTION value=368>mercedes1</OPTION> <OPTION value=262>mercedes2</OPTION> <OPTION value=632>mercedes3</OPTION> <OPTION value=655>mercedes4</OPTION> <OPTION value=139>mercedes5</OPTION> <OPTION value=555>mercedes6</OPTION> <OPTION value=606>mercedes7</OPTION> <OPTION value=545>mercedes8</OPTION> <OPTION value=618>mercedes9</OPTION> <OPTION value=339>mercedes10</OPTION> <OPTION value=338>mercedes11</OPTION></SELECT> <DIV style="DISPLAY: none" class="suggest abs zi2 br5"><SPAN class="target abs icon"> </SPAN> <SPAN class="abs icon desc mini"> </SPAN> <P class=suggest>chose category.<BR>some text here. </P> <P style="DISPLAY: none" class="error "></P></DIV></DIV></DIV> when i execute script noting happend and no errors Link to comment Share on other sites More sharing options...
MrMitchell Posted May 18, 2012 Share Posted May 18, 2012 What is @error after you run _IEFormElementGetObjByName()? I think you need to double-check your parameters on that function... make sure they are correct types... @error might help you. I tried to run your code but unfortunately http://www.......com does not exist. Link to comment Share on other sites More sharing options...
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