Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
        }