Jump to content

site select combobox appear another


Recommended Posts

hi guy 

i  have  a  site https://www.kijiji.it/pubblica-annuncio

when  a  select  in categoria:  by  combobox  a title  Elettronica  appear  a  sottocategoria

but 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

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 ~ getENVvars
My 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

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

:blink:

Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...