Created
June 25, 2018 04:22
-
-
Save sicksand/73bb3ba30988aec680a975d39b4cecd4 to your computer and use it in GitHub Desktop.
9hitsviewer macro - Guna Ini from google
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await Delay(1000); | |
while(await IsLoading()) { | |
await Delay(1000); | |
} | |
await Delay(5000); | |
ClickByXpath("input","type","text"); | |
await Delay(3000); | |
Typing("gunaini"); | |
await Delay(2000); | |
SendKeyPress(13); | |
await Delay(2000); | |
ClickByXpath(GenerateXpath("a","text","Guna Ini")); | |
await Delay(5000); | |
while(await IsLoading()) { | |
await Delay(5000); | |
} | |
var rand = Random(0, 100); | |
if (rand < 50) | |
{ | |
await Delay(5000) | |
ClickByClass("adsbygoogle"); | |
} | |
else if(rand >=51 && rand <70) | |
{ | |
await Delay(5000); | |
ClickByXpath(GenerateXpath("a", "text", "Mengenai Guna Ini")); | |
} | |
else if(randNum >= 70) | |
{ | |
await Delay(5000); | |
ClickByClass("adsbygoogle"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment