forked from dotnet/source-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEdgeDriverTest.cs
More file actions
41 lines (36 loc) · 1.05 KB
/
EdgeDriverTest.cs
File metadata and controls
41 lines (36 loc) · 1.05 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
38
39
40
41
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Edge;
namespace TestSolution_EdgeDriver_Tests
{
[TestClass]
public class EdgeDriverTest
{
// In order to run the below test(s),
// please follow the instructions from http://go.microsoft.com/fwlink/?LinkId=619687
// to install Microsoft WebDriver.
private EdgeDriver _driver;
[TestInitialize]
public void EdgeDriverInitialize()
{
// Initialize edge driver
var options = new EdgeOptions
{
PageLoadStrategy = PageLoadStrategy.Normal
};
_driver = new EdgeDriver(options);
}
[TestMethod]
public void VerifyPageTitle()
{
// Replace with your own test logic
_driver.Url = "https://www.bing.com";
Assert.AreEqual("Bing", _driver.Title);
}
[TestCleanup]
public void EdgeDriverCleanup()
{
_driver.Quit();
}
}
}