faustf Posted June 4, 2015 Share Posted June 4, 2015 hi guy i have a site https://www.kijiji.it/pubblica-annunciowhen a select in categoria: by combobox a title Elettronica appear a sottocategoriabut if i do this by script not appear , why ?? is possible simulated click over combobox with mouse ??i use this script_IENavigate($oIE, "https://www.kijiji.it/pubblica-annuncio") _IELoadWait($oIE) $oSelect = _IEGetObjByName($oIE, "categoria") ;Local $hWnd = WinWait("[CLASS:Pubblica il tuo annuncio gratis su Kijiji - Internet Explorer]", "", 10) ControlClick("Pubblica il tuo annuncio gratis su Kijiji - Internet Explorer", "", "Internet Explorer_Server1") ;_IEFormElementOptionSelect($oSelect, "Elettronica", 1, "byText") _IEFormElementSetValue($oSelect, "Elettronica");, 1, "byText") $oSelect1 = _IEGetObjByName($oIE, "Sottocategoria") _IEFormElementOptionSelect($oSelect1, "Tablet", 1, "byText")thankz for help Link to comment Share on other sites More sharing options...
MikahS Posted June 4, 2015 Share Posted June 4, 2015 The form name is "syi_create" try getting the form obj and then trying to select those elements with the IE form functions. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
mikell Posted June 4, 2015 Share Posted June 4, 2015 ... and take a little time to read the answers to your previous questions Link to comment Share on other sites More sharing options...
faustf Posted June 4, 2015 Author Share Posted June 4, 2015 o sorry mikell Link to comment Share on other sites More sharing options...
faustf Posted June 4, 2015 Author Share Posted June 4, 2015 i mod the script like this but do the same problem _IENavigate($oIE, "https://www.kijiji.it/pubblica-annuncio") _IELoadWait($oIE) $oForm = _IEFormGetObjByName($oIE, "syi_create") ;<<<<<<<<<<< $oSelect = _IEFormElementGetObjByName($oForm, "categoria") _IEFormElementOptionSelect($oSelect, "Elettronica", 1, "byText")not appear a second combo box Link to comment Share on other sites More sharing options...
faustf Posted June 6, 2015 Author Share Posted June 6, 2015 some one have idea ? Link to comment Share on other sites More sharing options...
Martineau Posted June 6, 2015 Share Posted June 6, 2015 You need to focus on the object first_IEAction($oSelect, "focus") Link to comment Share on other sites More sharing options...
faustf Posted June 10, 2015 Author Share Posted June 10, 2015 i tryed with also focus , but have the same problem , the combo box change and select elettronica but not appear a second combo box this is a code i have used $oForm = _IEFormGetObjByName($oIE, "syi_create") ;<<<<<<<<<<< $oSelect = _IEFormElementGetObjByName($oForm, "categoria") _IEAction($oSelect, "focus") _IEFormElementOptionSelect($oSelect, "Elettronica", 1, "byText") 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