Jump to content



Photo

Help With A Changing A Dropdown Menu.

dropdown

  • Please log in to reply
4 replies to this topic

#1 myubo

myubo

    Member

  • Members
  • PipPip
  • 18 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 09 September 2019 - 07:34 PM

β›” Can't seem to figure out how to change the dropdown menu on the code.  Can anyone have a look?

<label class="json-form-item select auto_fuel_type req variant-select">
<div class="label-wrapper">
    <span class="label">fuel</span>
</div>
<select
    tabindex="1"
    name="auto_fuel_type"
    class="json-form-input no-js auto_fuel_type">
    <option value="">-</option>
    <option value="1">gas</option>
    <option value="2">diesel</option>
    <option value="3">hybrid</option>
    <option value="4">electric</option>
</select>

Edited by myubo, 09 September 2019 - 07:47 PM.


#2 hare ram

hare ram

    Advanced Member

  • Members
  • PipPipPip
  • 122 posts
  • LocationNew Delhi
  • OS:Windows 10
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Professional Edition

Posted 09 September 2019 - 10:19 PM

http://network.ubots...-in-a-dropdown/

 

Above Links may help you to set dropdown item in ui 



#3 myubo

myubo

    Member

  • Members
  • PipPip
  • 18 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 09 September 2019 - 10:41 PM

I ended up using clicks to make i work:

    click(<id="ui-id-4-button">,"Left Click","No")
    wait(1)
    mouse over(<id="ui-id-10">,"No")
    wait(1)
    click(<id="ui-id-10">,"Left Click","No")


#4 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 3182 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 10 September 2019 - 12:57 PM

You can use the change dropdown command: http://wiki.ubotstud...Change_Dropdown

load html("<label class=\"json-form-item select auto_fuel_type req variant-select\">
<div class=\"label-wrapper\">
    <span class=\"label\">fuel</span>
</div>
<select
    tabindex=\"1\"
    name=\"auto_fuel_type\"
    class=\"json-form-input no-js auto_fuel_type\">
    <option value=\"\">-</option>
    <option value=\"1\">gas</option>
    <option value=\"2\">diesel</option>
    <option value=\"3\">hybrid</option>
    <option value=\"4\">electric</option>
</select>")
change dropdown(<name="auto_fuel_type">,"diesel")


#5 myubo

myubo

    Member

  • Members
  • PipPip
  • 18 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 10 September 2019 - 05:37 PM

I tried that but couldn't get it to work on craigslist, clicks work







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users