forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestClickBlankTarget.cs
44 lines (43 loc) · 1.53 KB
/
TestClickBlankTarget.cs
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
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace Selenium.Tests
{
[TestFixture]
public class TestClickBlankTarget : SeleniumTestCaseBase
{
[Ignore]
public void ClickBlankTarget()
{
selenium.Open("../tests/html/Frames.html");
selenium.SelectFrame("bottomFrame");
selenium.Click("changeBlank");
selenium.WaitForPopUp("_blank", "10000");
selenium.SelectWindow("_blank");
selenium.Click("changeSpan");
selenium.Close();
selenium.SelectWindow("null");
selenium.Click("changeBlank");
selenium.WaitForPopUp("_blank", "10000");
selenium.SelectWindow("_blank");
selenium.Click("changeSpan");
selenium.Close();
selenium.SelectWindow("null");
selenium.Submit("formBlank");
selenium.WaitForPopUp("_blank", "10000");
selenium.SelectWindow("_blank");
selenium.Click("changeSpan");
selenium.Close();
selenium.SelectWindow("null");
selenium.Open("../tests/html/test_select_window.html");
selenium.Click("popupBlank");
selenium.WaitForPopUp("_blank", "10000");
selenium.SelectWindow("_blank");
Console.WriteLine("At the end");
Assert.AreEqual("Select Window Popup", selenium.GetTitle());
selenium.Close();
selenium.SelectWindow("null");
}
}
}