Created
June 25, 2018 04:21
-
-
Save sicksand/6606a5c6357854bd20b6719a9908fd89 to your computer and use it in GitHub Desktop.
9hitsviewer macro - JBFoodClub 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("jbfoodclub"); | |
await Delay(2000); | |
SendKeyPress(13); | |
await Delay(2000); | |
ClickByXpath(GenerateXpath("a","text","Johor Bahru Food Club")); | |
await Delay(5000); | |
while(await IsLoading()) { | |
await Delay(5000); | |
} | |
var rand = Random(0, 100); | |
if (rand < 50) | |
{ | |
await Delay(5000); | |
ClickById("custom_html-3"); | |
} | |
else if(rand >=51 && rand <70) | |
{ | |
await Delay(5000); | |
ClickByTag("a","random"); | |
} | |
else if(randNum >= 70) | |
{ | |
await Delay(5000); | |
ClickById("custom_html-4"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment