Easy.Automation
1.0.0.5
See the version list below for details.
dotnet add package Easy.Automation --version 1.0.0.5
NuGet\Install-Package Easy.Automation -Version 1.0.0.5
<PackageReference Include="Easy.Automation" Version="1.0.0.5" />
paket add Easy.Automation --version 1.0.0.5
#r "nuget: Easy.Automation, 1.0.0.5"
// Install Easy.Automation as a Cake Addin #addin nuget:?package=Easy.Automation&version=1.0.0.5 // Install Easy.Automation as a Cake Tool #tool nuget:?package=Easy.Automation&version=1.0.0.5
easyautomation
Library to facilitate the construction of process automation.
Prerequisites
This release version is only available for FrameWork 4.7.2 or higher.
Introduction
This library was created in order to facilitate the development of autonomous robots. This package includes the necessary tools for WEB automation, Windows, Image recognition including the method of solving captcha.
Methods
Web Automation
The web automation methods must be accessed through the Web attribute. Then, just inform the name of the method to be used.
List of Types
TypeDriver
{
GoogleChorme,
InternetExplorer,
PhantomJS,
FireFox
}
TypeElement
{
Id,
Name,
Xpath,
CssSelector
}
TypeSelect
{
Value,
Text
}
EasyReturn.Web
{
IWebDriver driver,
DataTable table,
string Error,
string Value,
bool Sucesso,
Bitmap Bitmap
}
List of methods
new Web().StartBrowser (TypeDriver typeDriver): return EasyReturn.Web;
Method to start browser.
new Web().CloseBrowser ();
Method to exit Browser.
new Web().Navigate (string url): return EasyReturn.Web;
Method for navigating to a page
new Web().Click (TypeElement typeElement, string element, int timeout = 3): return EasyReturn.Web;
Method to click on element of the web page.
new Web().GetValue (TypeElement typeElement, string element, int timeout = 3): return EasyReturn.Web;
Method for getting page element value
new Web().AssignValue (TypeElement typeElement, string element, string value, int timeout = 3): return EasyReturn.Web;
Method to assign value in field
new Web().GetTableData (TypeElement typeElement, string element, int timeout = 3): return EasyReturn.Web;
Method for getting data from a table
new Web().SelectValue (TypeElement typeElement, TypeSelect typeSelect, string element, string value, int timeout = 3): return EasyReturn.Web;
Method for selecting a value in a combobox
new Web().GetWebImage (TypeElement typeElement, string element, string nameImage, int timeout = 3): return EasyReturn.Web;
Method to get image from the web
new Web().ResolveCaptcha (Bitmap imageBitman): return EasyReturn.Web;
Method to resolve Catpcha
OCR automation
OCR automation is based on the image to which the robot must perform the procedure. The ideal is to print and store the exact location of the screen for the robot to use. The ocr automation methods must be accessed through the OCR attribute.
List of methods
Click (string clickImage): return void;
Method for clicking element.
DoubleClick (string clickImage): return void;
Method to double click on element.
DragDropClick (string clickImage, string dropImage): return void;
Method for clicking on one element based on another
Base Automation
The base methods are used to facilitate some automation processes, in any environment. The web automation methods must be accessed through the Base attribute.
List of methods
ExtractTextPdf (string pathFile): return string;
Method to extract text from PDF
ConvertTo <T> (IList <T> list): return DataTable;
Method to convert list to DataTable
Example
using EasyAutomationFramework;
using System.Data;
public class Example : Web
{
public void StartProcess()
{
StartBrowser(TypeDriver.GoogleChorme);
EasyReturn.Web web = Navigate("https://datatables.net/examples/basic_init/data_rendering.html");
if (web.Sucesso)
{
SelectValue(TypeElement.Name, TypeSelect.Value, "example_length", "100", 10);
EasyReturn.Web table = GetTableData(TypeElement.Id, "example");
foreach (DataRow row in table.table.Rows)
{
System.Console.WriteLine(row["Name"].ToString());
}
}
}
}
Dúvidas
Dúvidas? Fale conosco: https://forms.gle/7RYpTTNcwsbehbYW8
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
- Pdfbox (>= 1.1.1)
- Selenium.Firefox.WebDriver (>= 0.26.0)
- Selenium.InternetExplorer.WebDriver (>= 3.150.1)
- Selenium.PhantomJS.WebDriver (>= 2.1.1)
- Selenium.Support (>= 3.8.0)
- Sikuli4Net (>= 1.0.6)
- System.Drawing.Common (>= 4.7.0)
- Tesseract (>= 3.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0.12 | 2,617 | 12/9/2022 |
1.0.0.11 | 333 | 12/9/2022 |
1.0.0.10 | 462 | 11/1/2022 |
1.0.0.9 | 365 | 10/31/2022 |
1.0.0.8 | 419 | 10/12/2022 |
1.0.0.7 | 379 | 10/12/2022 |
1.0.0.6 | 594 | 2/4/2022 |
1.0.0.5 | 445 | 1/26/2022 |
1.0.0.4 | 474 | 7/20/2020 |
1.0.0.3 | 582 | 7/18/2020 |
1.0.0.2 | 441 | 7/17/2020 |
1.0.0.1 | 421 | 7/17/2020 |
1.0.0 | 450 | 7/17/2020 |
Summary of changes made in this release of the package.