-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
37 lines (35 loc) · 1.03 KB
/
Copy pathProgram.cs
File metadata and controls
37 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Drawing;
using Applitools.Selenium;
using OpenQA.Selenium.Chrome;
namespace CSharpTutorial
{
class Program
{
static void Main(string[] args)
{
var driver = new ChromeDriver();
var eyes = new Eyes();
eyes.ForceFullPageScreenshot = true;
eyes.ApiKey = Environment.GetEnvironmentVariable("APPLITOOLS_API_KEY");
try
{
//Dictionary<string, string> testinfo = getTestInfoForPart(args);
eyes.Open(driver, "C# Demo", "Login Window", new Size(600, 800));
driver.Url = "https://demo.applitools.com";
eyes.CheckWindow("Login window test");
eyes.Close();
}
catch(Exception ex)
{
Console.WriteLine(ex);
}
finally
{
driver.Quit();
eyes.AbortIfNotClosed();
}
}
}
}