Skip to content

Instantly share code, notes, and snippets.

@vivrichards600
Last active April 11, 2020 17:10
Show Gist options
  • Save vivrichards600/e18b566d074216e7673ac57c648fd619 to your computer and use it in GitHub Desktop.
Save vivrichards600/e18b566d074216e7673ac57c648fd619 to your computer and use it in GitHub Desktop.
Automating 1 to 50 on http://zzzscore.com/1to50/en/ using webdriver and c#
// Automating 1 to 50 on http://zzzscore.com/1to50/en/ using webdriver and c#
IWebDriver driver = new FirefoxDriver();
driver.Navigate().GoToUrl("http://zzzscore.com/1to50/en/?ts=1586616870389");
for (var number = 1; number <= 50; number+=1) {
driver.FindElement(By.XPath($"//div[. = '{number}']")).Click();
}
driver.Quit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment