Page 1 of 1

Hey..quick question. Can i make random time intervals? ALso how to more narrow search image

Posted: 28 Sep 2018, 20:57
by rhoona
Hey guys hope someone sees this ha...

situation, i want it to search a page for a white box, but there are multible white boxes in a row...how could i narrow it to click the last one?

also is there a way to make random time intervals? SOmthing like 4000ms - 7000ms inbetween actions i could do?

Re: Hey..quick question. Can i make random time intervals? ALso how to more narrow search image

Posted: 29 Sep 2018, 16:10
by francois
Hello,

An example to make random time intervals :

Code: Select all

t_mini = 4000  //  milli seconds
t_maxi= 7000  // idem
t_aleatoire = t_mini +Math.floor( Math.random() * (t_maxi - t_mini+1 )) ;
Execution.pause(t_aleatoire)
François