This selects a kind, unfortunately, I'm not sure if it is doing it properly, because if I try it again, it continues to select the same one (or it is stuck on that particular kind). Also, these particular buttons have to have "simulated clicks", so my intention was to have a child action of "navigate to selection" (with "simulate click" checked).
Code: Select all
var Bt1 = Global.Browser.SelectKind("button1") var Bt2 = Global.Browser.SelectKind("button2") var Bt3 = Global.Browser.SelectKind("button3") var myArray = ['Bt1' , 'Bt2', 'Bt3']; var rand = myArray[Math.floor(Math.random() * myArray.length)];
Any help with this would be greatly appreciated!