Jump to content
WAPT Forum
Sign in to follow this  
atraylor

random selection of page's repeater radio buttons

Recommended Posts

Hello,

Is there a way to configure WAPT to randomly select from the available radio buttons on a page?

 

For example, my page has a number of selection options, appearing in the WAPT Name column like this :

 

ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl02$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl03$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl04$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl05$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl06$txtEdit2

etc..

 

To the right of each row is the WAPT Value column.

 

On arecorded session we have '2' next to repeater item 1, as the option was selected.

 

ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl02$txtEdit2 2

 

How do I configure WAPT to select randomly from one of other 12 repeater text options on the page?

 

Many thanks,

Andrew

 

post-24466-0-35115800-1486038694_thumb.jpg

Share this post


Link to post
Share on other sites

As I understood only one random parameter from

ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl02$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl03$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl04$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl05$txtEdit2
ctl00$MainContentPlaceHolder$Repeater1$ctl00$Webdatagrid1$ctl06$txtEdit2

etc..

should have a value.

I suggest you to create variables for all these parameters and use JavaScript operator to randomly initialize only one variable with value, all other should be empty.

Share this post


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.
Note: Your post will require moderator approval before it will be visible.

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...
Sign in to follow this  

×
×
  • Create New...