public async Task ExecuteAsync <T>(IBrowserBatch <T> batch, Action <IResult <T>, IWebDriver> callback, CancellationToken cancellationToken) { var driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), new ChromeOptions()); await Task.Factory.StartNew(() => { batch.Start(driver, callback); }, cancellationToken); }
public void Execute <T>(IBrowserBatch <T> batch, Action <IResult <T>, IWebDriver> callback) { var driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), new ChromeOptions()); batch.Start(driver, callback); }