faustf Posted June 4, 2015 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
MikahS Posted June 4, 2015 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
mikell Posted June 4, 2015 Posted June 4, 2015 ... and take a little time to read the answers to your previous questions
faustf Posted June 4, 2015 Author 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
Martineau Posted June 6, 2015 Posted June 6, 2015 You need to focus on the object first_IEAction($oSelect, "focus")
faustf Posted June 10, 2015 Author 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")
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