blob: 5b67d9b0b1fc1d3dbfc48ca09c6212f291f6ab6f [file] [log] [blame] [edit]
using NUnit.Framework;
using System.Text.RegularExpressions;
namespace Selenium.Tests
{
[TestFixture]
public class TestComments : SeleniumTestCaseBase
{
[Test]
public void Comments()
{
selenium.Open("../tests/html/test_verifications.html?foo=bar");
Assert.IsTrue(Regex.IsMatch(selenium.GetLocation(), "^[\\s\\S]*/tests/html/test_verifications\\.html[\\s\\S]*$"));
Assert.AreEqual(selenium.GetValue("theText"), "the text value");
Assert.AreEqual(selenium.GetValue("theHidden"), "the hidden value");
string txt = selenium.GetText("theSpan");
Assert.AreEqual(selenium.GetText("theSpan"), "this is the span");
}
}
}