Remove Selenium

This commit is contained in:
Haiping Chen 2024-12-21 00:39:35 +00:00
parent f471bfab3b
commit bb73f303a8
12 changed files with 60 additions and 18 deletions

View file

@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(TargetFramework)</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>$(LangVersion)</LangVersion>
<VersionPrefix>$(BotSharpVersion)</VersionPrefix>
<GeneratePackageOnBuild>$(GeneratePackageOnBuild)</GeneratePackageOnBuild>
<GenerateDocumentationFile>$(GenerateDocumentationFile)</GenerateDocumentationFile>
<OutputPath>$(SolutionDir)packages</OutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Selenium.WebDriver" Version="4.27.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.71" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Infrastructure\BotSharp.Core\BotSharp.Core.csproj" />
</ItemGroup>
</Project>

View file

@ -1,7 +1,7 @@
using OpenQA.Selenium.Chrome;
using System.IO;
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public class SeleniumInstance : IDisposable
{

View file

@ -1,7 +1,6 @@
using OpenQA.Selenium;
using OpenQA.Selenium.Interactions;
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,6 +1,6 @@
using System.Net.Http;
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,7 +1,6 @@
using OpenQA.Selenium;
using System.Collections.ObjectModel;
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver
{

View file

@ -1,4 +1,4 @@
namespace BotSharp.Plugin.WebDriver.Drivers.SeleniumDriver;
namespace BotSharp.Plugin.Selenium.Drivers;
public partial class SeleniumWebDriver : IWebBrowser
{
@ -86,4 +86,9 @@ public partial class SeleniumWebDriver : IWebBrowser
{
throw new NotImplementedException();
}
public Task PressKey(MessageInfo message, string key)
{
throw new NotImplementedException();
}
}

View file

@ -0,0 +1,23 @@
global using System;
global using System.Collections.Generic;
global using System.Text;
global using System.Threading.Tasks;
global using System.Text.Json;
global using System.Linq;
global using System.Text.RegularExpressions;
global using Microsoft.Extensions.Configuration;
global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.Logging;
global using BotSharp.Abstraction.Browsing.Enums;
global using BotSharp.Abstraction.Conversations;
global using BotSharp.Abstraction.Plugins;
global using BotSharp.Abstraction.Conversations.Models;
global using BotSharp.Abstraction.Functions;
global using BotSharp.Abstraction.Agents.Models;
global using BotSharp.Abstraction.Templating;
global using BotSharp.Abstraction.Agents;
global using BotSharp.Abstraction.Utilities;
global using BotSharp.Abstraction.Browsing.Models;
global using BotSharp.Abstraction.Browsing;
global using OpenQA.Selenium;

View file

@ -3,19 +3,13 @@
<PropertyGroup>
<TargetFramework>$(TargetFramework)</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>12.0</LangVersion>
<LangVersion>$(LangVersion)</LangVersion>
<VersionPrefix>$(BotSharpVersion)</VersionPrefix>
<GeneratePackageOnBuild>$(GeneratePackageOnBuild)</GeneratePackageOnBuild>
<GenerateDocumentationFile>$(GenerateDocumentationFile)</GenerateDocumentationFile>
<OutputPath>$(SolutionDir)packages</OutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Drivers\SeleniumDriver\**" />
<EmbeddedResource Remove="Drivers\SeleniumDriver\**" />
<None Remove="Drivers\SeleniumDriver\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Playwright" Version="1.49.0" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.71" />