blob: 9de848c254cfc9c145363294854474c13875e7e6 [file] [log] [blame]
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using System.Text.RegularExpressions;
using System.Threading;
namespace Selenium.Tests
{
[TestFixture]
public class TestGettingValueOfCheckbox : SeleniumTestCaseBase
{
[Test]
public void ShouldBeAbleToHandleFunkyEventHandling()
{
selenium.Open("../tests/html/test_submit.html");
string elementLocator = "name=okayToSubmit";
Assert.AreEqual("off", selenium.GetValue(elementLocator));
selenium.Click(elementLocator);
Assert.AreEqual("on", selenium.GetValue(elementLocator));
selenium.Click(elementLocator);
Assert.AreEqual("off", selenium.GetValue(elementLocator));
}
}
}