Skip to content

Instantly share code, notes, and snippets.

@sicksand
Created June 25, 2018 04:21
Show Gist options
  • Save sicksand/6606a5c6357854bd20b6719a9908fd89 to your computer and use it in GitHub Desktop.
Save sicksand/6606a5c6357854bd20b6719a9908fd89 to your computer and use it in GitHub Desktop.
9hitsviewer macro - JBFoodClub from Google
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