mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
23 lines
630 B
C#
23 lines
630 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Wabbajack.DTOs.Logins;
|
|
|
|
namespace Wabbajack.WebAutomation
|
|
{
|
|
public interface IWebDriver
|
|
{
|
|
Task NavigateTo(Uri uri, CancellationToken? token = null);
|
|
Task<string> EvaluateJavaScript(string text);
|
|
Task<Cookie[]> GetCookies(string domainPrefix);
|
|
public Action<Uri>? DownloadHandler { get; set; }
|
|
public Task WaitForInitialized();
|
|
ISchemeHandler WithSchemeHandler(Predicate<Uri> wabbajack);
|
|
}
|
|
|
|
public interface ISchemeHandler : IDisposable
|
|
{
|
|
public Task<Uri> Task { get; }
|
|
}
|
|
}
|