-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGridTest.tstest.cs
More file actions
70 lines (58 loc) · 1.83 KB
/
GridTest.tstest.cs
File metadata and controls
70 lines (58 loc) · 1.83 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using Telerik.WebAii.Controls.Xaml;
using Telerik.WebAii.Controls.Html;
using Telerik.TestingFramework.Controls.KendoUI;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
using EncapFromScratch.Lib;
namespace EncapFromScratch
{
public class GridTest : BaseWebAiiTest
{
#region [ Dynamic Pages Reference ]
private Pages _pages;
/// <summary>
/// Gets the Pages object that has references
/// to all the elements, frames or regions
/// in this project.
/// </summary>
public Pages Pages
{
get
{
if (_pages == null)
{
_pages = new Pages(Manager.Current);
}
return _pages;
}
}
[CodedStep(@"New Coded Step")]
public void GridTest_CodedStep()
{
TestContext.Set(Manager);
ActiveBrowser.NavigateTo("http://localhost:3000/projects");
var grid = new Lib.Grid();
grid.SelectRow(1);
System.Threading.Thread.Sleep(5000);
ActiveBrowser.NavigateTo("http://localhost:3000/projects");
foreach(string h in grid.GetHeaders())
{
Log.WriteLine(h);
}
System.Threading.Thread.Sleep(5000);
}
#endregion
// Add your test methods here...
}
}