blob: 5b70d075f4cd3c14186be3b6fefd3b4e7f684495 [file] [log] [blame]
using System;
using System.Collections.Generic;
using System.Text;
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");
}
}
}