Jump to content

How to bind select Random Generate String Radio button - (Moved)


Recommended Posts

Hi, I would like to run script by using autoit to select the radio button below but the thing is the Value/string is random generate. For example now the value is "mbCkxM" another 5 minutes it will be JFKdjX. So How do I bind the random generated value in to my script? please check my script after the double lines. thanks

 

 

 
   
   
  <tr>
   
   
  <TD>
  <p style="text-align: left;">WXB</p>
  </TD>
  <TD>
  <p style="text-align: left;">Delisdfsdfions</p>
  </TD>
  <TD>
  <p style="text-align: left;">Private Bag 33450</p>
  </TD>
  <TD>
  <p style="text-align: left;">LwerTT</p>
  </TD>
  <TD>
  <p style="text-align: left;">WLG</p>
  </TD>
  <TD>
  <p style="text-align: left;"></p>
  </TD>
  <TD>
  <p style="text-align: left;">SwerWS</p>
  </TD>
  <TD>
  <p style="text-align: left;">12 werwerAY</p>
  </TD>
  <TD>
  <p style="text-align: center;">
   
   
   
  <input type="radio" name="merchantLocationID" value="mbCkxM" />
   
   
  </p>
  </TD>
  </TR>

=================================================================================================================

 

#include <IE.au3>
; Create a browser window and navigate to Australia Post
$oIE = _IECreate("https://online.auspost.com.au/eParcel/common/auth/login.do")
; get pointers to the login form and username, password and signin fields
Local $o_form = _IEFormGetObjByName($oIE, "LoginForm")
Local $o_login = _IEFormElementGetObjByName($o_form, "userName")
Local $o_password = _IEFormElementGetObjByName($o_form, "password")
Local $username = "abcd123n"
Local $password = "abcd123n"
; Set field values and submit the form
_IEFormElementSetValue($o_login, $username)
_IEFormElementSetValue($o_password, $password)
;_IEAction($o_password, "focus")
_IEFormSubmit($o_form)
;Merchant location select
Local $o_formx = _IEFormGetObjByName($oIE, "merchantLocationListForm")
_IEFormElementRadioSelect($o_formx, "mbCkxM", "merchantLocationID", 1, "byValue")
_IEFormSubmit($o_formx)

Link to comment
Share on other sites

  • Developers

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...