Jump to content

Recommended Posts

Posted

I'm trying to select a radio button inthe following web page source, I want to select radio button for No pets:

 

 <!-- petsallowed_s -->
 <a name="postAdForm.attributeMap[petsallowed_s]"></a>
 <li ">
  <!-- petsallowed_s -->
  <label class="add-asterisk  " for="petsallowed_s">
   Animaux acceptés<span class="colon">&nbsp;:</span>
  </label>
  <div class="form-section">
   <label class="radio-button-content">
    <input id="petsallowed_s" name="postAdForm.attributeMap[petsallowed_s]" class=" petsallowed_s" name="postAdForm.attributeMap[petsallowed_s]" req="req" type="radio" value="1"/>
    <label for="petsallowed_s" class="radio-button-rd">
     <div class="inner-circle"></div>
    </label>
    <span class="radio-label">
     Oui
    </span>
   </label>
   <label class="radio-button-content">
    <input id="petsallowed_s-1" name="postAdForm.attributeMap[petsallowed_s]"class=" petsallowed_s" name="postAdForm.attributeMap[petsallowed_s]" req="req" type="radio" value="0"/>
    <label for="petsallowed_s-1" class="radio-button-rd">
     <div class="inner-circle"></div>
    </label>
    <span class="radio-label">
     Non
    </span>
   </label>
   <label class="radio-button-content">
    <input id="petsallowed_s-2" name="postAdForm.attributeMap[petsallowed_s]"  class=" petsallowed_s" name="postAdForm.attributeMap[petsallowed_s]" req="req" type="radio" value="limited"/>
    <label for="petsallowed_s-2" class="radio-button-rd">
     <div class="inner-circle"></div>
    </label>
    <span class="radio-label">
     Limité
    </span>
   </label>
   <div class="field-message add-clear hidden-for-ct" data-for="petsallowed_s"></div>
  </div>
 </li>
 

 

  • Moderators
Posted (edited)

Moved to the appropriate forum.

Moderation Team

@Bounsky that's great, you have stated what you want. Now how about showing us what you have tried on your own? This forum is dedicated to helping people with their scripts; it is not a place where you put in an order and someone serves up the code for you. Look at the IE functions in the help file, and search the forum, and you should get some ideas.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

JLogan3o13,

Thanks for the advice, here is what doesn't work uo to nom:

#include <IE.au3>
Local $oIE = _IECreate (" https://www.kijiji.ca/?siteLocale=fr_CA")
_IENavigate($oIE, "https://www.kijiji.ca/p-select-category.html?categoryId=37")
Local $oForm = _IEFormGetObjByName($oIE, "PostAdMainForm")
;----------

; PETS
;----------
_IEFormElementRadioSelect($oForm, "petsallowed_s-1]", "0")
 

And the radio button does not get selected...

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
×
×
  • Create New...