Easy.Automation 1.0.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Easy.Automation --version 1.0.0.7
NuGet\Install-Package Easy.Automation -Version 1.0.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Easy.Automation" Version="1.0.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Easy.Automation --version 1.0.0.7
#r "nuget: Easy.Automation, 1.0.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Easy.Automation as a Cake Addin
#addin nuget:?package=Easy.Automation&version=1.0.0.7

// Install Easy.Automation as a Cake Tool
#tool nuget:?package=Easy.Automation&version=1.0.0.7

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 Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 1,867 12/9/2022
1.0.0.11 298 12/9/2022
1.0.0.10 423 11/1/2022
1.0.0.9 333 10/31/2022
1.0.0.8 391 10/12/2022
1.0.0.7 355 10/12/2022
1.0.0.6 560 2/4/2022
1.0.0.5 420 1/26/2022
1.0.0.4 440 7/20/2020
1.0.0.3 555 7/18/2020
1.0.0.2 414 7/17/2020
1.0.0.1 390 7/17/2020
1.0.0 420 7/17/2020

Summary of changes made in this release of the package.