public void start() { setTypeChart(); setTeam(); //webDriver = new FirefoxDriver(); var options = new ChromeOptions(); options.AddArgument("ignore-certificate-errors"); options.AddArgument("no-sandbox"); webDriver = new ChromeDriver(Program.CHROMEDRIVER_PATH, options); init(); while (running) { rocksSet = false; while (findABattle()) { Thread.Sleep(50); } Debug.WriteLine("Battle found!"); battle(); exitBattle(); } calculator.exit(); webDriver.Close(); }
public void start() { setTypeChart(); setTeam(); //webDriver = new FirefoxDriver(); webDriver = new ChromeDriver(Program.CHROMEDRIVER_PATH); init(); while (running) { rocksSet = false; while (findABattle()) { Thread.Sleep(50); } Debug.WriteLine("Battle found!"); battle(); exitBattle(); } calculator.exit(); webDriver.Close(); }