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

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

×