Easy.Automation
1.0.0.8
See the version list below for details.
dotnet add package Easy.Automation --version 1.0.0.8
NuGet\Install-Package Easy.Automation -Version 1.0.0.8
<PackageReference Include="Easy.Automation" Version="1.0.0.8" />
paket add Easy.Automation --version 1.0.0.8
#r "nuget: Easy.Automation, 1.0.0.8"
// Install Easy.Automation as a Cake Addin #addin nuget:?package=Easy.Automation&version=1.0.0.8 // Install Easy.Automation as a Cake Tool #tool nuget:?package=Easy.Automation&version=1.0.0.8
easyautomation
Library to facilitate the construction of process automation.
Exemplo
https://bit.ly/3JMK2ox https://www.youtube.com/watch?v=Lr1JNuAk6BY&t=69s
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
SendKey
AssignValue(TypeElement.Name, "q", "HelloWorld") .element(By.Name("q")).SendKeys(Keys.Enter);
_driver.FindElement(By.Name("q")).SendKeys(Keys.Enter);
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. |
-
.NETFramework 4.7.2
- Pdfbox (>= 1.1.1)
- Selenium.PhantomJS.WebDriver (>= 2.1.1)
- Selenium.Support (>= 3.8.0)
- Sikuli4Net (>= 1.0.6)
- System.Drawing.Common (>= 4.7.0)
- Tesseract (>= 4.1.1)
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,749 | 12/9/2022 |
1.0.0.11 | 342 | 12/9/2022 |
1.0.0.10 | 471 | 11/1/2022 |
1.0.0.9 | 373 | 10/31/2022 |
1.0.0.8 | 427 | 10/12/2022 |
1.0.0.7 | 387 | 10/12/2022 |
1.0.0.6 | 602 | 2/4/2022 |
1.0.0.5 | 453 | 1/26/2022 |
1.0.0.4 | 482 | 7/20/2020 |
1.0.0.3 | 589 | 7/18/2020 |
1.0.0.2 | 450 | 7/17/2020 |
1.0.0.1 | 431 | 7/17/2020 |
1.0.0 | 460 | 7/17/2020 |
Summary of changes made in this release of the package.