Last active
April 11, 2020 17:10
-
-
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#
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
// 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