# SeleniumUtil **Repository Path**: wsjj/selenium-util ## Basic Information - **Project Name**: SeleniumUtil - **Description**: Selenium简化工具包,包含三个主流浏览器的一些基本操作 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 14 - **Created**: 2023-08-23 - **Last Updated**: 2025-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SeleniumUtil [![NuGet](https://img.shields.io/nuget/dt/SeleniumUtil.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/SeleniumUtil/) [![NuGet](https://img.shields.io/nuget/v/SeleniumUtil.svg?label=NuGet&style=flat&logo=nuget)](https://www.nuget.org/packages/SeleniumUtil/) document language : [English](README.en.md) | [简体中文](README.md) ## Description Selenium Simplified toolkit that contains some basic operations for all three major browsers [Sample tool site](https://tokengo.top/docs/selenium-uitl/selenium/) ## Installing a plug-in In the tool=》NuGet package manager =》Package manager console ```csharp Install-Package SeleniumUtil ``` ## Use SeleniumUtil to access Baidu ```csharp using SeleniumUtil; var data=new CrawlerMain(browser:BrowserEnum.Edge,isEnableVerboseLogging:true); data.GoToUrl("https://www.baidu.com/"); //access a website var wd = data.FindElementsById("kw"); //Get the input box wd.SendKeys("Selenium"); //The input var su = data.FindElementsById("su");//Get the search button su.Click();//click data.Wait(By.Id("content_left"), TimeSpan.FromSeconds(10)); //Wait for the interface to complete loading var content_left = data.FindElementsById("content_left"); // Access to content Console.WriteLine(content_left.Text); Console.ReadKey(); ```