Bounsky Posted June 5, 2019 Posted June 5, 2019 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"> :</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 JLogan3o13 Posted June 5, 2019 Moderators Posted June 5, 2019 (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 June 5, 2019 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!
Bounsky Posted June 5, 2019 Author Posted June 5, 2019 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...
Nine Posted June 5, 2019 Posted June 5, 2019 Your radio select statement is badly formatted, try : _IEFormElementRadioSelect($oForm, "0", "postAdForm.attributeMap[petsallowed_s]") Salutations cordiales ! “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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