0

I've managed to capture Object(s) that I want by using Descriptor but I want to randomly click a button from the captured object.

enter image description here

is there a way to get how many object I got from the Descriptor so that I can use it to manipulate it on the Object Ordinal? thanks!

Some Ninja
  • 23
  • 2

2 Answers2

0

Easier in standard HTML virtual user. I recommend giving it a shot there. You correlate for the href tags and then randomly select one to be pushed by in a web_url() statement.

James Pulley
  • 5,606
  • 1
  • 14
  • 14
0

Use Utility function(lr_paramarr_random()).

//Capture all the objects

web_reg_save_param("c_object","LB=something","RB=something","ord=All",LAST);
web_custom_request(.....);

//It will automatically pick random object from the list of objects each time

lr_paramarr_random(lr_eval_string("{c_object}"),"Rand");

//random object click request

web_custom_request(...{Rand}...)
Basava
  • 42
  • 4