Hi everyone,
Please help me this macro: scroll down mouse after loading site, waiting for some seconds and click on the button
Thank you !
await Delay(Random(2500,3000));
await WaitForLoading();
var scrl;
do {
scrl = Random(3,9);
for (var i = 1; i < scrl; i++) {
await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);");
await Delay(Random(100,150));
}
await Delay (Random(1000,1500));
} while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight"))
await Delay(Random(5000,7000));
// click button by class or xpath
Hi!JavaScript:await Delay(Random(2500,3000)); await WaitForLoading(); var scrl; do { scrl = Random(3,9); for (var i = 1; i < scrl; i++) { await EvaluateScript("var ddE = document.documentElement; ddE.scrollTo(0, ddE.clientHeight/(Math.floor(Math.random()*3)+9) + ddE.scrollTop);"); await Delay(Random(100,150)); } await Delay (Random(1000,1500)); } while (await EvaluateScript("var ddE = document.documentElement; ddE.clientHeight+ddE.scrollTop < ddE.scrollHeight")) await Delay(Random(5000,7000)); // click button by class or xpath
9Hits Macros build-in functions | 9Hits Traffic Exchange
Use build-in functions to create interaction for your website.9hits.com