Last active
November 30, 2021 04:10
-
-
Save vivrichards600/9831f2138ac090f6c17d9c75dc67c74a to your computer and use it in GitHub Desktop.
Automating color sense test on http://zzzscore.com/color/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 color sense test http://zzzscore.com/color/en using webdriver and c# | |
IWebDriver driver = new FirefoxDriver(); | |
driver.Navigate().GoToUrl("http://zzzscore.com/color/en/"); | |
var sixtySecondsFromNow = DateTime.Now.AddSeconds(60); | |
while (DateTime.Now <= sixtySecondsFromNow) | |
{ | |
driver.FindElement(By.CssSelector(".main")).Click(); | |
} | |
driver.Quit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment