MPSC.PlenoSoft.WatiN.Extension
1.0.0.9
Requires NuGet 3.5.0 or higher.
dotnet add package MPSC.PlenoSoft.WatiN.Extension --version 1.0.0.9
NuGet\Install-Package MPSC.PlenoSoft.WatiN.Extension -Version 1.0.0.9
<PackageReference Include="MPSC.PlenoSoft.WatiN.Extension" Version="1.0.0.9" />
paket add MPSC.PlenoSoft.WatiN.Extension --version 1.0.0.9
#r "nuget: MPSC.PlenoSoft.WatiN.Extension, 1.0.0.9"
// Install MPSC.PlenoSoft.WatiN.Extension as a Cake Addin
#addin nuget:?package=MPSC.PlenoSoft.WatiN.Extension&version=1.0.0.9
// Install MPSC.PlenoSoft.WatiN.Extension as a Cake Tool
#tool nuget:?package=MPSC.PlenoSoft.WatiN.Extension&version=1.0.0.9
WatiN Extension é uma extensão para o WatiN (Web Application Testing In .Net)
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MPSC.PlenoSoft.WatiN.Extension.Util;
using WatiN.Core;
namespace MPSC.PlenoSoft.WatiN.Extension.Testes.Unidade
{
[TestClass]
public class Testando_WatiN
{
[TestMethod]
public void Exemplo_De_Como_Automatizar_Pesquisa_No_Google()
{
var browser = WatiNExtension.ObterNavegador<IE>();
browser.GoTo("https://www.google.com/search?q=WatiN");
var html = browser.Html;
Assert.IsNotNull(html);
}
[TestMethod]
public void Exemplo_De_Como_Automatizar_Pesquisa_De_CEP_Nos_Correios()
{
var navegador = Navegador.New(TipoNavegador.InternetExplorer);
navegador.IrPara("http://www.buscacep.correios.com.br/servicos/dnec/menuAction.do?Metodo=menuCep", TimeSpan.FromSeconds(10), "CEP");
navegador.SetText("relaxation", "20090000", false);
navegador.ClickButton("Buscar", true, true);
var html = navegador.GetHtml();
navegador.Fechar();
Assert.IsNotNull(html);
}
}
}
Product | Versions |
---|---|
.NET Framework | net |
-
- WatiN (>= 2.1.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 |
---|
(Atual)
2018/04/26 - 1.0.0.8 -> Versão Inicial da extensão para o WatiN;