Jump to content
UBot Underground

Help With A Changing A Dropdown Menu.


Recommended Posts

 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
Link to post
Share on other sites

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")
Link to post
Share on other sites

You can use the change dropdown command: http://wiki.ubotstudio.com/wiki/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")
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...