Skip to content

Instantly share code, notes, and snippets.

@manoj9788
Created January 23, 2019 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj9788/469457ec5bb7f122a1e90c41bc9321e1 to your computer and use it in GitHub Desktop.
Save manoj9788/469457ec5bb7f122a1e90c41bc9321e1 to your computer and use it in GitHub Desktop.
namespace Applitools.Selenium.Tests
{
using System;
using System.Drawing;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Chrome;
using NUnit.Framework;
using OpenQA.Selenium.Remote;
[TestFixture]
public class SeleniumTest
{
private IWebDriver driver;
[Test]
public void SeleniumTest1()
{
var eyes = new Eyes();
eyes.ApiKey = "HZeTQj103qqbLJkpT0Ez81CTbivkDEYQx4Q7GjM104Kv2Hg110";
eyes.ForceFullPageScreenshot = true;
eyes.HideScrollbars = true;
//eyes.StitchMode = StitchModes.CSS;
eyes.MatchLevel = MatchLevel.Layout;
eyes.BaselineEnvName = "test";
driver = new ChromeDriver();
eyes.Open(driver, "newIngTest!", "IngLogTest!", new Size(1000, 700));
try
{
driver.Navigate().GoToUrl("https://www.ing.com.au/securebanking/");
System.Threading.Thread.Sleep(10000);
eyes.CheckWindow();
eyes.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
finally
{
eyes.AbortIfNotClosed();
driver.Quit();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment